Re: Rejoice! No more editing hashes when creating users

2006-08-03 Thread [EMAIL PROTECTED]
One word: Amen. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED

Re: problems with runfcgi

2006-08-03 Thread Gacha
I was thinking that runfscgi is smth like runserver :D now I understand my mistake. Thanx :) --~--~-~--~~~---~--~~ 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@go

Re: Rejoice! No more editing hashes when creating users

2006-08-03 Thread Malcolm Tredinnick
On Thu, 2006-08-03 at 23:42 -0500, Adrian Holovaty wrote: > On 8/3/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > The traditional approach is that they are password entry boxes that are > > empty and you only pay attention in the form processing if they contain > > something (in which case

Re: Rejoice! No more editing hashes when creating users

2006-08-03 Thread Ian Holsman
On 04/08/2006, at 3:37 PM, Malcolm Tredinnick wrote:On Fri, 2006-08-04 at 15:13 +1000, Ian Holsman wrote:[...] I like the idea of a change password view, could I twist your arm a bit and make it a  'generate random passwordand email it to the user view' instead of 'set password' ?and possibly have

Re: Rejoice! No more editing hashes when creating users

2006-08-03 Thread Malcolm Tredinnick
On Fri, 2006-08-04 at 15:13 +1000, Ian Holsman wrote: [...] > I like the idea of a change password view, > could I twist your arm a bit and make it a 'generate random password > and email it to the user view' instead of 'set password' ? > and possibly have the email point the user to a view to

Re: Rejoice! No more editing hashes when creating users

2006-08-03 Thread Ian Holsman
On 04/08/2006, at 2:42 PM, Adrian Holovaty wrote:On 8/3/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: The traditional approach is that they are password entry boxes that areempty and you only pay attention in the form processing if they containsomething (in which case the two entries must match

Re: Rejoice! No more editing hashes when creating users

2006-08-03 Thread Adrian Holovaty
On 8/3/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > The traditional approach is that they are password entry boxes that are > empty and you only pay attention in the form processing if they contain > something (in which case the two entries must match, etc). I would have > though that worke

Re: Rejoice! No more editing hashes when creating users

2006-08-03 Thread Kenneth Gonsalves
On 04-Aug-06, at 9:54 AM, Adrian Holovaty wrote: > In revision 3520, I checked in a fix to a longstanding problem (ticket > #61) -- having to enter password hashes when creating users via the > Django admin site. The "Add user" page now lets you put in the > username and raw password, via two HT

Re: Rejoice! No more editing hashes when creating users

2006-08-03 Thread Malcolm Tredinnick
On Thu, 2006-08-03 at 23:24 -0500, Adrian Holovaty wrote: > In revision 3520, I checked in a fix to a longstanding problem (ticket > #61) -- having to enter password hashes when creating users via the > Django admin site. The "Add user" page now lets you put in the > username and raw password, via

Re: Kid templates ValueError: too many values to unpack

2006-08-03 Thread Adrian Holovaty
On 8/3/06, bernie2004 <[EMAIL PROTECTED]> wrote: > File "... /django/views/debug.py", line 18, in > get_template_exception_info > origin, (start, end) = exc_value.source > > ValueError: too many values to unpack Hmmm...I've never used Kid with Django, but, as a shot in the dark, I'd suggest

Rejoice! No more editing hashes when creating users

2006-08-03 Thread Adrian Holovaty
In revision 3520, I checked in a fix to a longstanding problem (ticket #61) -- having to enter password hashes when creating users via the Django admin site. The "Add user" page now lets you put in the username and raw password, via two HTML "input type=password" fields. The code is also a pretty

Ajax and Django example application

2006-08-03 Thread Istvan Albert
Hello All, For those interested here is an AJAX based demo application using django, developed with two different javascript libraries: Prototype and with MochiKit http://www.personal.psu.edu/iua1/ajax-django-sandbox.htm cheers, Istvan --~--~-~--~~~---~--~~ Yo

Re: Distribute Django program to run on a local computer

2006-08-03 Thread Rob Hudson
Malcolm Tredinnick wrote: > On Thu, 2006-08-03 at 13:25 -0700, Rob Hudson wrote: > > If anyone is still following along > > I am. Not a Mac or Windows user, but you're solving an interesting > problem. The end result is going to be useful. Thanks for sharing this > information. Thanks for the sup

Re: method as default field option

2006-08-03 Thread Alan Green
On 8/3/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > What you want is to pass in a callable for the default value (not the > result of calling the callable, which is what you are doing now). See > http://www.djangoproject.com/documentation/models/field_defaults/ for an > example. Callable d

Re: Really weird - Admin not working with Apache/modpython

2006-08-03 Thread Malcolm Tredinnick
On Fri, 2006-08-04 at 02:51 +, Hale wrote: > Hey all, > > I've got version 0.95 installed and it all works fine from the built in > webserver on my FC5 machine. Works awesome. But when I move to > running it behind modpython on Fedora5's apache, the admin stops > working - more accurately I

Kid templates ValueError: too many values to unpack

2006-08-03 Thread bernie2004
Does anybody got a clue about this one? I just wanted to give Kid templates a try but got stuck pretty fast: Traceback (most recent call last): File "... /django/core/servers/basehttp.py", line 272, in run self.result = application(self.environ, self.start_response) File "... /django/core

Really weird - Admin not working with Apache/modpython

2006-08-03 Thread Hale
Hey all, I've got version 0.95 installed and it all works fine from the built in webserver on my FC5 machine. Works awesome. But when I move to running it behind modpython on Fedora5's apache, the admin stops working - more accurately I get a blank screen. Nothing. Not an error from the brows

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread [EMAIL PROTECTED]
Yip, I tried that Jay, the result was: [EMAIL PROTECTED]:~$ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/kimizu/django_src/dja:/home/kimizu/django_src/django/bin My initial feeling about this was the that the django-admin.py wasn't found due to the directory structure wi

Re: Creating User Accounts

2006-08-03 Thread Dave
> I think your best bet is to override the save() method of your model. This worked perfectly. It didn't even occur to me that I could do that. Thanks so much for the suggestion. - Dave Worley --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Off Topic: Why does IE hate me?

2006-08-03 Thread Bryan Chow
This should get you started. The following styles override your styles (i.e. you can just paste them at the bottom of your CSS file.) #allcontent { width: 780px; } #header { margin: 10px 0; } #main { float: left; width: 545px; margin: 0 0 10px 0; } #sidebar { float: right; width: 170px;

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread Jay Parlar
On 8/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Im using Putty on a windows machine yep. Following Jeff's tutorial my > paths are all wrong now, as myproject in now in the 'bin' directory. > Did you try doing: echo $PATH Jay P. --~--~-~--~~~---~--~~

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread [EMAIL PROTECTED]
Error message, mv: cannot stat `dja': No such file or directory. I think I'll just delete everything and start over again --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread [EMAIL PROTECTED]
> From the command prompt, type: > > echo $PATH > > and let us know what it says. > > Jay P. After logging into Putty, if I type echo $PATH I get: [EMAIL PROTECTED]:~$ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/kimizu/django_src/dja:/home/kimizu/django_src/django/bin

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread [EMAIL PROTECTED]
Im using Putty on a windows machine yep. Following Jeff's tutorial my paths are all wrong now, as myproject in now in the 'bin' directory. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread SmileyChris
Go into your django_src directory, then: mv dja ../django_projects --~--~-~--~~~---~--~~ 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: Anybody set up Django using Dreamhost?

2006-08-03 Thread Jay Parlar
On 8/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > SmilyChris, you've made me SmilySimon, thanks a million! For anyone > else out there, just navigate to the directory django-admin.py is in > e.g. > > cd\django_src\django\bin > > then type > python django-admin.py startproject myproject >

Re: Novice problem with cookies

2006-08-03 Thread Jeremy Osterhouse
[EMAIL PROTECTED] wrote: > I considered this before, but with the configuration of the lan of my > client if I try to access the public IP from a machine of the lan I get > the router's configuration web page. And they don't allow me to > reconfigure this. In which case, I think you should be ab

Re: Creating User Accounts

2006-08-03 Thread Jay Parlar
On 8/3/06, Dave <[EMAIL PROTECTED]> wrote: > > I'm creating an application for a client in which the Admin has a > "customer" model. The admin area was easy to set up, and everything's > working just swell under Apache 2. > > The challenge I'm facing, however, is that when the Admin (admin here >

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread Jay Parlar
On 8/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Thanks for your reply Julio, yes I've tried "source ~.bash_profile" > before typing "django-admin.py startproject myproject" but still the > prompt says "command not found". >From the command prompt, type: echo $PATH and let us know wh

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread [EMAIL PROTECTED]
SmilyChris, you've made me SmilySimon, thanks a million! For anyone else out there, just navigate to the directory django-admin.py is in e.g. cd\django_src\django\bin then type python django-admin.py startproject myproject --~--~-~--~~~---~--~~ You received this

Re: Creating 2 linked models from one page

2006-08-03 Thread limodou
On 8/4/06, Ian Clelland <[EMAIL PROTECTED]> wrote: > > On 8/3/06, cyberco <[EMAIL PROTECTED]> wrote: > > > > OK, but what to do with the following in case of 2 models: > > > > In the past, I've made a custom manipulator in situations like this. > Something like this (WARNING: Untested code ahead!)

Off Topic: Why does IE hate me?

2006-08-03 Thread Jay Parlar
This is only tangentially related to Django... As a volunteer project, I'm doing up a website for my local resident's organization, using Django of course. I do my development on a Powerbook, and constantly check that everything looks ok with Firefox and Safari. So today I asked a friend to chec

Re: Declare a variable in a template

2006-08-03 Thread limodou
On 8/4/06, skullvulture <[EMAIL PROTECTED]> wrote: > > Is there anyway to declare variables within a template? I'm coming > from a Zope background where with dtml you have the dtml-let tag and > with ZPT you have tal:define. Django's templating seems so much cooler > than Zope's, but I'm missing

Re: problems with runfcgi

2006-08-03 Thread Malcolm Tredinnick
On Thu, 2006-08-03 at 13:55 -0700, Gacha wrote: > I tryed to run "python manage.py runfcgi method=threaded > host=195.13 port=7778 daemonize=false" in my project dir. The > command executed, but nothing happened. I opened my site in browser and > it was loading and loading an loading, but it d

Re: Creating User Accounts

2006-08-03 Thread Chris Long
I believe there are articles on blogs and wiki posts about extending the user model. The basic idea as of right now (as far as I know), before model inheritance is committed, is to connect the two using a foreign key. If you want to create a user and relate it to the customer object, best spot m

Re: Novice problem with cookies

2006-08-03 Thread [EMAIL PROTECTED]
Hi Gabriel. All the clients are windows machines and I don't know how to set the equivalent of /etc/hosts in a Windows box. But anyway if I invent a domain name I will have the same problem but with the public IP in this case. Can I disable the mechanism that checks the domain names of the cook

Re: Distribute Django program to run on a local computer

2006-08-03 Thread Malcolm Tredinnick
On Thu, 2006-08-03 at 13:25 -0700, Rob Hudson wrote: > If anyone is still following along I am. Not a Mac or Windows user, but you're solving an interesting problem. The end result is going to be useful. Thanks for sharing this information. > I got past the last error by > specifically adding "

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread [EMAIL PROTECTED]
Thanks for your reply Julio, yes I've tried "source ~.bash_profile" before typing "django-admin.py startproject myproject" but still the prompt says "command not found". --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread Jay Parlar
I would avoid the Wiki tutorial completely and use Jeff Croft's guide: http://www2.jeffcroft.com/2006/may/11/django-dreamhost/ I've setup a couple sites flawlessly using his tutorial. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread Julio Nobrega
On 8/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm working my way through the tutorial on Dreamhost's wiki > (http://wiki.dreamhost.com/index.php/Django) and came upon a problem, > namely the django-admin.py: command not found prompt. > Did you run "source ~/.bash_profile"? If yes

Re: Declare a variable in a template

2006-08-03 Thread James Bennett
On 8/3/06, skullvulture <[EMAIL PROTECTED]> wrote: > I have another loop above that displays upcoming shows. Is it possible > to have two object lists, one of upcoming and one of past shows be > passed to the template? A view can pass any number of variables it wants to, with any legal Python va

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread SmileyChris
Hi Simon, Try this instead: python django-admin.py If you want any specific help with Dreamhost setup, you can try contacting me via gtalk and I'll have a chat with you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Creating User Accounts

2006-08-03 Thread Dave
I'm creating an application for a client in which the Admin has a "customer" model. The admin area was easy to set up, and everything's working just swell under Apache 2. The challenge I'm facing, however, is that when the Admin (admin here meaning a person using the Admin interface) creates a Cu

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread [EMAIL PROTECTED]
Thanks Jay, I've actually tried to set up Django twice, once using Jeff's guide and another time using the wiki, but on both occasions the same problem occured. Jay Parlar wrote: > I would avoid the Wiki tutorial completely and use Jeff Croft's guide: > http://www2.jeffcroft.com/2006/may/11/djang

Re: Declare a variable in a template

2006-08-03 Thread Don Arbow
On Aug 3, 2006, at 2:45 PM, skullvulture wrote: > I have another loop above that displays upcoming shows. Is it > possible > to have two object lists, one of upcoming and one of past shows be > passed to the template? Yes, you can pass any sort of data that you want to your template. So, if

Re: Novice problem with cookies

2006-08-03 Thread [EMAIL PROTECTED]
I considered this before, but with the configuration of the lan of my client if I try to access the public IP from a machine of the lan I get the router's configuration web page. And they don't allow me to reconfigure this. It's important to get the site from both sides because they will use the

Anybody set up Django using Dreamhost?

2006-08-03 Thread [EMAIL PROTECTED]
I'm working my way through the tutorial on Dreamhost's wiki (http://wiki.dreamhost.com/index.php/Django) and came upon a problem, namely the django-admin.py: command not found prompt. I understand that the paths within the .bash_profile file within the root directory must point towards the djang

Re: django installation on mac

2006-08-03 Thread Adrian Holovaty
On 8/3/06, richard mendes <[EMAIL PROTECTED]> wrote: > as to the recommendation from Adrian i tried to install the newest > version but i got an error that said it was missing something and i > had to install a older version. I will try to install it in a later > stadium. Hi Richard, Would you m

Re: Declare a variable in a template

2006-08-03 Thread skullvulture
Don, I have another loop above that displays upcoming shows. Is it possible to have two object lists, one of upcoming and one of past shows be passed to the template? Thanks Adrian, I understand your philosophy of separating presentation and logic, but even in your there you say that the tem

Re: Login not working: Site matching query does not exist.

2006-08-03 Thread cyberco
Is anybody else having this problem? --~--~-~--~~~---~--~~ 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 emai

Re: Declare a variable in a template

2006-08-03 Thread Don Arbow
On Aug 3, 2006, at 1:05 PM, skullvulture wrote: > > Is there anyway to declare variables within a template? I'm coming > from a Zope background where with dtml you have the dtml-let tag and > with ZPT you have tal:define. Django's templating seems so much > cooler > than Zope's, but I'm missin

Re: Declare a variable in a template

2006-08-03 Thread James Bennett
On 8/3/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > * If you're not using any of the objects with is_past_show == False, > then change your view so that object_list is only the objects with > is_past_show==True. Then you can do this: Assuming the use of the object_list generic view, this is p

Re: django installation on mac

2006-08-03 Thread richard mendes
Steven, Thank's for the advice,that did the trick. as to the recommendation from Adrian i tried to install the newest version but i got an error that said it was missing something and i had to install a older version. I will try to install it in a later stadium. Richard --~--~-~--~

Re: Declare a variable in a template

2006-08-03 Thread Adrian Holovaty
On 8/3/06, skullvulture <[EMAIL PROTECTED]> wrote: > Is there anyway to declare variables within a template? I'm coming > from a Zope background where with dtml you have the dtml-let tag and > with ZPT you have tal:define. Django's templating seems so much cooler > than Zope's, but I'm missing a

Re: Is AJAX Alone Reason to Use TG?`

2006-08-03 Thread Dan Shafer
FWIW given my complete newbie perspective, I have a couple of reactions.First, it is clear that the answer to my question that started this meandering thread is a resounding no. I sort of expected that would be the case, but I just wanted to be sure. Second, there's only an advantage to adopting a

Re: Distribute Django program to run on a local computer

2006-08-03 Thread Rob Hudson
If anyone is still following along I got past the last error by specifically adding "django.db.backends.sqlite3.base" to my list of includes. This got me a little further. The server will successfully start up and I can make a request. I got a traceback in the browser about django.middleware.co

problems with runfcgi

2006-08-03 Thread Gacha
I tryed to run "python manage.py runfcgi method=threaded host=195.13 port=7778 daemonize=false" in my project dir. The command executed, but nothing happened. I opened my site in browser and it was loading and loading an loading, but it didn;t get any response from django. What I'm doing wrong

Re: Flatpages problem

2006-08-03 Thread Edmund
Adrian Holovaty wrote: > Are you sure you added > 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware' to > your MIDDLEWARE_CLASSES setting? That's the part that actually > *serves* the flatpages. Thanks for the reply Adrian. Yes, I did add this. I was using mod_python and Apache2.

Re: have urlpatterns in urls.py changed?

2006-08-03 Thread [EMAIL PROTECTED]
Thank god i found this post! Lorenzo --~--~-~--~~~---~--~~ 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 ema

Re: Declare a variable in a template

2006-08-03 Thread James Bennett
On 8/3/06, skullvulture <[EMAIL PROTECTED]> wrote: > Is there anyway to declare variables within a template? I'm coming > from a Zope background where with dtml you have the dtml-let tag and > with ZPT you have tal:define. Django's templating seems so much cooler > than Zope's, but I'm missing a

Re: accessing was_published_today in a template

2006-08-03 Thread Adrian Holovaty
On 8/3/06, skullvulture <[EMAIL PROTECTED]> wrote: > In the tutorial you create a custom method was_published_today. How > can you access it in the template? I'm using generic views. Do I have > to write my own more complicated view to access it? Thanks. Hi skullvulture, To access methods of

Re: django installation on mac

2006-08-03 Thread Adrian Holovaty
On 8/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/db/__init__.py", > line 23, in ? Hi Richard, This doesn't answer your question, but I'd strongly recommend that you use Django

Re: accessing was_published_today in a template

2006-08-03 Thread skullvulture
Thanks, I was putting in the parenthesis. --~--~-~--~~~---~--~~ 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

Declare a variable in a template

2006-08-03 Thread skullvulture
Is there anyway to declare variables within a template? I'm coming from a Zope background where with dtml you have the dtml-let tag and with ZPT you have tal:define. Django's templating seems so much cooler than Zope's, but I'm missing a declare or define tag. The idea I want to be able to do i

Re: accessing was_published_today in a template

2006-08-03 Thread Steven Armstrong
On 08/03/06 21:01, skullvulture wrote: > In the tutorial you create a custom method was_published_today. How > can you access it in the template? I'm using generic views. Do I have > to write my own more complicated view to access it? Thanks. > Something like this should work: {% if object.

Re: accessing was_published_today in a template

2006-08-03 Thread James Bennett
On 8/3/06, skullvulture <[EMAIL PROTECTED]> wrote: > In the tutorial you create a custom method was_published_today. How > can you access it in the template? I'm using generic views. Do I have > to write my own more complicated view to access it? Thanks. Since it's a property of the object, h

Re: django installation on mac

2006-08-03 Thread Steven Armstrong
On 08/03/06 20:50, [EMAIL PROTECTED] wrote: > Hello Django Users, > > I'm trying to install Django on a mac os x (10.3) but i'm experiencing > some problems i can't solve. > When i run import django in mu interpreter it's working fine but when i > start the server i get the following error messag

Re: translating app-name

2006-08-03 Thread Adrian Holovaty
On 8/3/06, Ian Clelland <[EMAIL PROTECTED]> wrote: > On 8/3/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > > > We should definitely solve this problem in a nicer way. What do you > > think? An __appname__ variable in the app's __init__.py file? > > Or possibly a __verbose_name__ variable, to u

Re: Creating 2 linked models from one page

2006-08-03 Thread Ian Clelland
On 8/3/06, cyberco <[EMAIL PROTECTED]> wrote: > > OK, but what to do with the following in case of 2 models: > In the past, I've made a custom manipulator in situations like this. Something like this (WARNING: Untested code ahead!) might work for you: class CustomManipulator(forms.manipulator):

Re: translating app-name

2006-08-03 Thread patrickk
I´ve been thinking about the __init__.py-file also. doesn´t seem very continuous to do it there though. on the other hand, I couldn´t think of any better solution ... should I open a ticket for this one? thanks, patrick Am 03.08.2006 um 20:02 schrieb Adrian Holovaty: > > On 8/3/06, patrickk <

Re: accessing was_published_today in a template

2006-08-03 Thread Ian Clelland
On 8/3/06, skullvulture <[EMAIL PROTECTED]> wrote: > > In the tutorial you create a custom method was_published_today. How > can you access it in the template? I'm using generic views. Do I have > to write my own more complicated view to access it? Thanks. You don't need to write any more com

accessing was_published_today in a template

2006-08-03 Thread skullvulture
In the tutorial you create a custom method was_published_today. How can you access it in the template? I'm using generic views. Do I have to write my own more complicated view to access it? Thanks. --~--~-~--~~~---~--~~ You received this message because you ar

Re: translating app-name

2006-08-03 Thread Ian Clelland
On 8/3/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > We should definitely solve this problem in a nicer way. What do you > think? An __appname__ variable in the app's __init__.py file? Or possibly a __verbose_name__ variable, to use the same terminology that we already use for models and fie

django installation on mac

2006-08-03 Thread [EMAIL PROTECTED]
Hello Django Users, I'm trying to install Django on a mac os x (10.3) but i'm experiencing some problems i can't solve. When i run import django in mu interpreter it's working fine but when i start the server i get the following error message. Unhandled exception in thread started by Traceback

Re: translating app-name

2006-08-03 Thread Adrian Holovaty
On 8/3/06, patrickk <[EMAIL PROTECTED]> wrote: > isn´t there any workaround? > renaming my app solves the problem ... but then I have to mix german > and english in my code. > moreover, considering internationalization I don´t think it´s good > practice to have german app-names. I agree that it's

Re: translating app-name

2006-08-03 Thread patrickk
isn´t there any workaround? renaming my app solves the problem ... but then I have to mix german and english in my code. moreover, considering internationalization I don´t think it´s good practice to have german app-names. Am 03.08.2006 um 19:17 schrieb Adrian Holovaty: > > On 8/3/06, va:pat

Re: translating app-name

2006-08-03 Thread Adrian Holovaty
On 8/3/06, va:patrick.kranzlmueller <[EMAIL PROTECTED]> wrote: > the language-code for my site is german, but the app-names and the > models are english. > in the admin-interface, it´s no problem to have german names for the > tables. but how can I change the names of my installed apps? Hi Patric

Re: Is AJAX Alone Reason to Use TG?

2006-08-03 Thread [EMAIL PROTECTED]
there is no problems in using scripts like: http://www.dynamicdrive.com/dynamicindex17/indexb.html In Django,TG,Pylons,Web.py,Whatever Framework :) No widgets required. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: drag & drop for admin-interface

2006-08-03 Thread Steven Armstrong
On 08/03/06 11:23, patrickk wrote: [...] > > Good idea. However, with using the change-list for reordering you > have to load all the dojo-stuff - even if you don´t want to reorder > anything. > Since loading Dojo is quite slow (at least in my experience) I´m not > sure about this. > If y

how to return unique days in month_archive generic view

2006-08-03 Thread Patrick J. Anderson
Hi! I'm building a day-based navigation for my blog posts. I'm using generic view (month_archive) object_list to get all post for a specific month. How can I get unique days in my template loop on object_list if I have multiple posts per day? Is there a way to do it "generically", or do I nee

translating app-name

2006-08-03 Thread va:patrick.kranzlmueller
the language-code for my site is german, but the app-names and the models are english. in the admin-interface, it´s no problem to have german names for the tables. but how can I change the names of my installed apps? thanks, patrick --~--~-~--~~~---~--~~ You re

Re: Is AJAX Alone Reason to Use TG?

2006-08-03 Thread James Bennett
On 8/3/06, Don Arbow <[EMAIL PROTECTED]> wrote: > Check out this comparison of the six most "popular" (Dojo, > Zimbra,Yahoo, Microsoft, Google, and Prototype), each has its own > strengths and weaknesses: Ehhh... I normally don't pimp my blog in here, but I don't think that's the best review to g

Re: Creating 2 linked models from one page

2006-08-03 Thread cyberco
OK, but what to do with the following in case of 2 models: === new_data = request.POST.copy() errors = manipulator.get_validation_errors(new_data) if not errors: manipulator.do_html2python(new_data) == The complete method is: === def new(request): manipulato

Re: Is AJAX Alone Reason to Use TG?`

2006-08-03 Thread James Bennett
On 8/3/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: > - what would we gain by having an 'official' javascript library? Honestly? I think the only thing we gain is an end to people asking "which JS library is the 'official' one for Django?" ;) > so, is there something that django could do to make

Re: Is AJAX Alone Reason to Use TG?`

2006-08-03 Thread James Bennett
On 8/3/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > I just came across this presentation: > http://domscripting.com/presentations/xtech2006/ > which describes a new layer/methodolgy on how ajax should be implemented. It's not really "new"; Jeremy's been advocating that, and smart people have been

Re: Flatpages problem

2006-08-03 Thread Adrian Holovaty
On 8/2/06, Edmund <[EMAIL PROTECTED]> wrote: > Newbie question here... I installed Flatpages as per the docs. Then, I > created a flatpage via the admin interface, and also checked that the > SITE_IDs shown matched that in my settings.py. > > But, I get a 404. On tracing through the 404, I see tha

Re: Ordering by __str__

2006-08-03 Thread Adrian Holovaty
On 7/28/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > I have a model class that returns the string as below: > > def __str__(self): > return "%s %s" % (self.program, self.course_number) > > In the list_display I have: > list_display = ('__str__', 'uploaded') > > I want to be able to order b

Re: filters in admin

2006-08-03 Thread Adrian Holovaty
On 7/29/06, jws <[EMAIL PROTECTED]> wrote: > Is it currently possible to create filters in the admin interface that > limit the displayed itemsby a criteria applied to a datefield? It's not possible at the moment to create custom filters, but this is on the to-do list for the (figurative) ver

Re: Novice problem with cookies

2006-08-03 Thread Jeremy Osterhouse
[EMAIL PROTECTED] wrote: > As we haven't a domain name I set the SESSION_COOKIE_DOMAIN to the > public IP of the site. Well this works great from Internet, but when I > try to access the admin site from the lan of my client I couldn't log > in. If I change the SESSION_COOKIE_DOMAIN it works into

Re: Novice problem with cookies

2006-08-03 Thread Gabriel Puliatti
On 8/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, I'm here again: > > I'm a novice with web developing and when I began to read django > documentation > I understood that that wasn't matter with the name you put to the > SESSION_COOKIE_DOMAIN and if it has dots in it it will not have

Re: Full Text Search w/ MySQL

2006-08-03 Thread Andrew Durdin
Adam Endicott wrote: > > Do any of the core devs see this as a candidate for inclusion in > contrib? Speaking as the author of the piece -- I don't. This code isn't developed enough to be particularly practical as-is: to be more useful it should probably support both natural language and boolean

Re: method as default field option

2006-08-03 Thread bernie2004
Malcolm Tredinnick wrote: > The reason you are getting the same values all the time is because the > random.randint(1,1000) and time.time() calls are being evaluated when > the CharFiueld instance is created, which is at your model *class* > creation time (i.e. import time, essentially). Not when

Re: Creating 2 linked models from one page

2006-08-03 Thread limodou
On 8/3/06, cyberco <[EMAIL PROTECTED]> wrote: > > Yes, but I want only one 'submit' button on the html page. This means > that the POST data goes to one 'view' method. How can I first create an > instance of A and then an instance of B (with A's id) with the same > POST data? > > You can put two m

Re: Creating 2 linked models from one page

2006-08-03 Thread cyberco
Yes, but I want only one 'submit' button on the html page. This means that the POST data goes to one 'view' method. How can I first create an instance of A and then an instance of B (with A's id) with the same POST data? --~--~-~--~~~---~--~~ You received this mes

Re: Is AJAX Alone Reason to Use TG?`

2006-08-03 Thread Ian Holsman
I just came across this presentation: http://domscripting.com/presentations/xtech2006/which describes a new layer/methodolgy on how ajax should be implemented.I personally would think implementing something like this would be a step forwardand we could then argue about if mochikit or dojo or yui or

Re: drag & drop for admin-interface

2006-08-03 Thread patrickk
thanks arthur, some additional notes below ... Am 03.08.2006 um 02:42 schrieb arthur debert: > > Hi Patrick. > > I've been planing to implement this, but haven't found the time to. I > know code speaks louder than words... but I've done some thought over > this and would like to share my opinion

Re: drag & drop for admin-interface

2006-08-03 Thread patrickk
first, a usecase: say you have a website with lots of movies. then you have a table for "filmstarts of this week" - on the website the filmstarts are ordered by a column "position". basically, it´s for every table you want to order manually (not using "date" or whatever). Am 03.08.2006 um 0

Novice problem with cookies

2006-08-03 Thread [EMAIL PROTECTED]
Hi, I'm here again: I'm a novice with web developing and when I began to read django documentation I understood that that wasn't matter with the name you put to the SESSION_COOKIE_DOMAIN and if it has dots in it it will not have problems with firefox. I'm finishing a project made with django but

Re: Using form manipulator for data in multiple models

2006-08-03 Thread Nebojša Đorđević
On 2 Aug 2006, at 21:17, Mikeal Rogers wrote: In nearly every POST i get the data needs to be broken up and either modify or create more than one model. I was hoping to still be able to use the model manipulators for this but all the documentation seems to be very single form/post == single mod

Re: Is AJAX Alone Reason to Use TG?`

2006-08-03 Thread Gábor Farkas
James Bennett wrote: > On 8/2/06, gabor <[EMAIL PROTECTED]> wrote: >> django does not force you to use the django-templating-system (you can >> use myghty/zope-tal/whatever instead), but it clearly recommends the >> django-templating-system, and that's the system which is the most >> tested/stream

  1   2   >