Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread mralokkp
Kindly execute the code that i wish to do from django it self # Simplyfied date format change that I wish to use in django import datetime t = datetime.date.today() print t.strftime("%Y,%m,%d") print "My Required Date Format is " print t.strftime("%d,%m,%Y") Can't i call this program to

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread Malcolm Tredinnick
On Thu, 2007-03-15 at 05:58 +, mralokkp wrote: > Thanks James but the spaces had been removed > If Spaces it gives template error. > If not it gives the former error > says > AttributeError at /registration/ > 'FormFieldWrapper' object has no attribute 'month' > had resolved Reading the

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread mralokkp
Thanks James but the spaces had been removed If Spaces it gives template error. If not it gives the former error says AttributeError at /registration/ 'FormFieldWrapper' object has no attribute 'month' had resolved But not able to change the date format still I tryed to poke the source code

Copying objects in admin

2007-03-14 Thread Mark Jarecki
Hi guys When you click the "Save and Add Another button" in the Admin, the values are cleared and all need to be re-entered for the new object. How would I go about saving that existing object and then transferring the field values to the new object. This would save a lot of time for some

Re: Please add to the Django Tutorials list

2007-03-14 Thread Rubic
On Mar 14, 7:27 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I've just added an entire page to the wiki about tutorials > (http://code.djangoproject.com/wiki/Tutorials), with subcategories etc. Very nice, especially the categories. Thanks! -- Jeff Bauer Rubicon, Inc.

Re: Playing with fixtures and django serializers -> Errors...

2007-03-14 Thread Russell Keith-Magee
On 3/14/07, Jens Diemer <[EMAIL PROTECTED]> wrote: > > Here some information: I'm rewrite PyLucid CMS: http://www.pylucid.org > The emphasis is thereby: Using PyLucid in a shared Webhosting > environment. So I implement a complete Web-Based installation. > > I write a "init DB data" routine:

Method problem with .save()

2007-03-14 Thread DuncanM
I have 2 classes: # # SquadSelector Class # class SquadSelector(models.Model): fixture = models.ForeignKey(Fixture, verbose_name="Fixture", core=True, help_text="Fixture to select squad for.") gk = models.ForeignKey(Player, verbose_name="Goal

Re: Deployment with Subversion

2007-03-14 Thread Kenneth Gonsalves
On 14-Mar-07, at 10:46 PM, [EMAIL PROTECTED] wrote: > how do people deploy Django projects with subversion? We did a simple > checkout at a client's and when we need to do updates, we copy his > settings.py file somewhere outside the directory, do the svn update, > we copy the settings.py

Re: Deployment with Subversion

2007-03-14 Thread Ned Batchelder
Also, keep in mind that you can tell svn to ignore a particular file even though it is located in a working directory. We keep a settings.py under svn control, and have it import a local.py which is ignored. This way, each developer can make local modifications without fear of accidentally

Please add to the Django Tutorials list

2007-03-14 Thread [EMAIL PROTECTED]
Hello Djuggernauts, I've just added an entire page to the wiki about tutorials (http:// code.djangoproject.com/wiki/Tutorials), with subcategories etc. Please add any that I've missed to this page (and feel free to put them into two or more subcategories if warrented). Thanks! Simon

Re: Saving a model instance multiple times

2007-03-14 Thread Malcolm Tredinnick
On Thu, 2007-03-15 at 11:07 +1100, Mark Jarecki wrote: > Hi, > > I was wondering how you would go about saving a model instance > multiple times (having seperate db entries) while changing just one > or two fields each time. I'm wanting to use a single series of inputs > that define the

Saving a model instance multiple times

2007-03-14 Thread Mark Jarecki
Hi, I was wondering how you would go about saving a model instance multiple times (having seperate db entries) while changing just one or two fields each time. I'm wanting to use a single series of inputs that define the parameters to create/save multiple event objects to the database.

Re: django install on mac osx 10.4.8

2007-03-14 Thread Jay Parlar
On 3/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi everybody, > > hope you're all good out there. > > I did a few progress with my install. > i installed python 2.4. > > with this install instead of the latest one i could install django > with the sudo python setup.py install

Re: Django models, detect whether value comes from db, or has explicitly been supplied.

2007-03-14 Thread Malcolm Tredinnick
On Thu, 2007-03-15 at 08:37 +1100, Malcolm Tredinnick wrote: > On Wed, 2007-03-14 at 20:26 +, Norjee wrote: > > Imagine the following model: > > > > class Article(models.Model): > > title = models.IntegerField() > > > > Then when you do case 1): > > art = Article.objects.get(pk=1) > >

Re: Nested edit_inline?

2007-03-14 Thread Adrian Holovaty
On 3/14/07, Daniel Ellison <[EMAIL PROTECTED]> wrote: > Is there a way to have nested inline editing? For example, I have a Poll > model which can have multiple Questions - which, of course, can have > multiple Answers. I tried adding edit_inline=models.TABULAR to both the > Question and Answer

Re: Django models, detect whether value comes from db, or has explicitly been supplied.

2007-03-14 Thread Norjee
Thanks, I was hoping I was overlooking some Django internals, but apparently not ;) I'll just stick to using two queries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: URLpattern kwargs becoming corrupted over time

2007-03-14 Thread Malcolm Tredinnick
On Wed, 2007-03-14 at 21:39 +, Jeff Forcier wrote: > Greets all, > > Been having the most bizarre issue for quite some time now; it seems > as if the 'kwargs' portion of various URLpattern objects/views are > 'bleeding' into one another once the server has been under moderate > load for at

Re: Starting a new, external process

2007-03-14 Thread Malcolm Tredinnick
On Wed, 2007-03-14 at 19:08 +, Henrik Lied wrote: > Hi there! > > I have a model which allows people to upload videos. > In the save-method I run os.system("mencoder *variables"), which > converts the uploaded video to a flash file. > > I don't want the user to have to wait until the

URLpattern kwargs becoming corrupted over time

2007-03-14 Thread Jeff Forcier
Greets all, Been having the most bizarre issue for quite some time now; it seems as if the 'kwargs' portion of various URLpattern objects/views are 'bleeding' into one another once the server has been under moderate load for at least a short period. I will have e.g. a specific view that

Re: Django models, detect whether value comes from db, or has explicitly been supplied.

2007-03-14 Thread Rubic
Assuming you've got a 'mydate' attribute: mydate = models.DateField(null=True) You can conditionally assign it if null: import datetime art = Article.objects.get(pk=1) if not art.mydate: art.mydate = datetime.date.today() art.save() -- Jeff Bauer Rubicon, Inc.

Re: Django models, detect whether value comes from db, or has explicitly been supplied.

2007-03-14 Thread Malcolm Tredinnick
On Wed, 2007-03-14 at 20:26 +, Norjee wrote: > Imagine the following model: > > class Article(models.Model): > title = models.IntegerField() > > Then when you do case 1): > art = Article.objects.get(pk=1) > art.title = "New title" > art.save() > > or case 2): > art =

Re: Deployment with Subversion

2007-03-14 Thread Malcolm Tredinnick
On Wed, 2007-03-14 at 17:16 +, [EMAIL PROTECTED] wrote: > Hello, > > how do people deploy Django projects with subversion? We did a simple > checkout at a client's and when we need to do updates, we copy his > settings.py file somewhere outside the directory, do the svn update, > we copy

Re: models.ForeignKey problem

2007-03-14 Thread Malcolm Tredinnick
On Wed, 2007-03-14 at 21:16 +0100, Roland Hedberg wrote: > Hi Rubic, > > Rubic wrote: > > Roland, > > > > The error message isn't the most helpful. ;-) > > I'll second that ! > > > I had a similar problem back in January and tracked it > > down to ticket #2536. My workaround was changing >

Re: WHAT IS DJANGO?

2007-03-14 Thread Todd O'Bryan
The Django you're looking for is here: http://webpages.charter.net/django/ It's apparently a program for printing tablature for various fretted instruments. This Django is a framework for writing applications on the web. On Wed, 2007-03-14 at 13:51 -0700, DICK wrote: > I AM NEW TO THIS SITE

Re: WHAT IS DJANGO?

2007-03-14 Thread Nathan R. Yergler
I think you've found the wrong Django. This Django is a Python web framework for building web applications. On 3/14/07, DICK <[EMAIL PROTECTED]> wrote: > > I AM NEW TO THIS SITE AND THE REASON I AM POSTING THIS IS BECAUSE I > WANTED TO DOWLOAD SOME SHEET MUSIC AND TABLATURE AT THIS LINK: > >

Re: Starting a new, external process

2007-03-14 Thread Daniel Hepper
Hi! I had exactly the same problem. I solved it by having Django write the Video file to a directory. In the background, a process checks every couple of seconds if there is a new FLV to convert. This process is completely independent of Django. You might want to start it with an init.d script

Re: Starting a new, external process

2007-03-14 Thread Atilla
I don't have a full example, but the thread module won't do what you need. You need to spawn an external process to do your job. For this take a look at python's documentation. It's a faily simple thing to do, if you just want to run mencoder on the file, On 14/03/07, Henrik Lied <[EMAIL

WHAT IS DJANGO?

2007-03-14 Thread DICK
I AM NEW TO THIS SITE AND THE REASON I AM POSTING THIS IS BECAUSE I WANTED TO DOWLOAD SOME SHEET MUSIC AND TABLATURE AT THIS LINK: cbsr26.ucr.edu/wlkfiles/Publications/JohnDowland/JohnDowland.html HOWEVER I CANT GET IN IT AND I WOULD LIKE TO BE ABLE TO BUT I DON'T KNOW HOW I'M HOPING SOMEBODY

Re: newforms and templating

2007-03-14 Thread dballanc
You might take a look at BaseForm._html_output(). It's the function that does most of the work for .as_p() and so on. Using it as a guide you should be able to make your own render function to add to your form class. --~--~-~--~~~---~--~~ You received this

Django models, detect whether value comes from db, or has explicitly been supplied.

2007-03-14 Thread Norjee
Imagine the following model: class Article(models.Model): title = models.IntegerField() Then when you do case 1): art = Article.objects.get(pk=1) art.title = "New title" art.save() or case 2): art = Article.objects.get(pk=1) art.save() Is there a way that the model, before saving, knows

Re: models.ForeignKey problem

2007-03-14 Thread Roland Hedberg
Hi Rubic, Rubic wrote: > Roland, > > The error message isn't the most helpful. ;-) I'll second that ! > I had a similar problem back in January and tracked it > down to ticket #2536. My workaround was changing > the name of the ForeignKey attribute -- in your case > 'project' -- to another

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread James Bennett
On 3/14/07, mralokkp <[EMAIL PROTECTED]> wrote: > Could not parse the remainder: | date: "F j Y" No spaces before or after the bar, no spaces before or after the colon: {{ somvar|date:"F j y" }} -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct."

Starting a new, external process

2007-03-14 Thread Henrik Lied
Hi there! I have a model which allows people to upload videos. In the save-method I run os.system("mencoder *variables"), which converts the uploaded video to a flash file. I don't want the user to have to wait until the conversion is done before he can go on with his business. I've tried the

Re: newb: Django & CountingDown

2007-03-14 Thread Atilla
On 14/03/07, johnny <[EMAIL PROTECTED]> wrote: > > I have an app that is for online test taking. Most online test are 30 > mins to 2hrs. I need to create count down clock from when the test is > stared. If 30 mins test, then count down will start from 30 mins : 00 > Secs, 29 min: 59 secs and so

Re: Checking whether an app is installed?

2007-03-14 Thread Aidas Bendoraitis
Actually, the order of the apps in my template is also customized, so it seems, that I'll have to create an template tag, taking an app name, comparing it to settings.INSTALLED_APPS and returning a boolean variable, i.e. {% check "auth" as is_installed %} {% if is_installed %} ... show links to

Re: Per-app permissions ?

2007-03-14 Thread David Cramer
Because this has everything to do with the web 2.0 expo On Mar 14, 9:33 am, "Chris Brand" <[EMAIL PROTECTED]> wrote: > What's the best way to restrict access on a per-app basis ? > I want to have two apps, with some users allowed access to one, others > allowed access to the other, and some

Re: Search Swish

2007-03-14 Thread Mary
If jacobe or Adrain can help in answering me i will really appreciate Thank you in advance ; Mary Adel On Mar 11, 9:45 pm, "Mary" <[EMAIL PROTECTED]> wrote: > I read on one of the posts here > > > At World Online, thesearchengine (lawrence.com/search, > > ljworld.com/search) uses swish-e

Re: models.ForeignKey problem

2007-03-14 Thread Rubic
Roland, The error message isn't the most helpful. ;-) I had a similar problem back in January and tracked it down to ticket #2536. My workaround was changing the name of the ForeignKey attribute -- in your case 'project' -- to another name. -- Jeff Bauer Rubicon, Inc.

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread Tim Chase
> Thanks for that TIM A LOT glad to help > But stuck again > > AttributeError at /registration/ > 'FormFieldWrapper' object has no attribute 'month' Well, somewhere in your code, you're asking for the "month" attribute of an object. And that object doesn't have a "month" property, so it

Re: Django Book

2007-03-14 Thread [EMAIL PROTECTED]
I wouldn't expect that date at all. On Mar 14, 12:52 pm, "Derek Lee-Wo" <[EMAIL PROTECTED]> wrote: > Amazon shows that the book on Django will be published on March 26th > which is 1 1/2 weeks away. Does anyone know if that date is still > valid? > > I'm anxiously waiting to order it. > > Derek

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread [EMAIL PROTECTED]
I don't know what you're trying to format, but is it actually a datetime field? On Mar 14, 1:05 pm, "mralokkp" <[EMAIL PROTECTED]> wrote: > HELP PLZZ > > On Mar 14, 7:54 pm, "mralokkp" <[EMAIL PROTECTED]> wrote: > > > Thanks for that TIM A LOT > > But stuck again > > > AttributeError at

Re: Newforms - Dynamic Fields from a queryset

2007-03-14 Thread Rubic
Tipan, I've posted a code snippet that I think addresses your issue: http://www.djangosnippets.org/snippets/82/ -- Jeff Bauer Rubicon, Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread mralokkp
HELP PLZZ On Mar 14, 7:54 pm, "mralokkp" <[EMAIL PROTECTED]> wrote: > Thanks for that TIM A LOT > But stuck again > > AttributeError at /registration/ > 'FormFieldWrapper' object has no attribute 'month' > Request Method: GET > Request URL:http://127.0.0.1:8000/registration/ > Exception Type:

Django Book

2007-03-14 Thread Derek Lee-Wo
Amazon shows that the book on Django will be published on March 26th which is 1 1/2 weeks away. Does anyone know if that date is still valid? I'm anxiously waiting to order it. Derek --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: django install on mac osx 10.4.8

2007-03-14 Thread [EMAIL PROTECTED]
Hi everybody, hope you're all good out there. I did a few progress with my install. i installed python 2.4. with this install instead of the latest one i could install django with the sudo python setup.py install command. but now i can't seem to start a project. when i do the import django

Re: Deployment with Subversion

2007-03-14 Thread Bob T.
Hi Vincent, Check out http://code.djangoproject.com/wiki/DosAndDontsForApplicationWriters. Bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Deployment with Subversion

2007-03-14 Thread Bob T.
This one is a bit more direct: http://code.djangoproject.com/wiki/SplitSettings Bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Deployment with Subversion

2007-03-14 Thread [EMAIL PROTECTED]
Hello, how do people deploy Django projects with subversion? We did a simple checkout at a client's and when we need to do updates, we copy his settings.py file somewhere outside the directory, do the svn update, we copy the settings.py file back in and do a graceful restart of Apache. Does

Re: Deployment with Subversion

2007-03-14 Thread Bob T.
This one is a bit more direct: http://code.djangoproject.com/wiki/SplitSettings Bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Newforms - Dynamic Fields from a queryset

2007-03-14 Thread Tipan
I wonder if anyone can give me some pointers. I've been working with new forms with reasonable results, but I've come across a problem when creating a form with dynamic fields and rendering to an HTML template. I want to create a form using data from a queryset which extracts data for a specific

Per-app permissions ?

2007-03-14 Thread Chris Brand
What's the best way to restrict access on a per-app basis ? I want to have two apps, with some users allowed access to one, others allowed access to the other, and some allowed access to both. Any advice would be very much appreciated. Thanks, Chris

Web 2.0 Expo

2007-03-14 Thread David Cramer
Any other Django users going to be in the area? I see there's a Django talk at the conference by Adrian and there's a lot of other great stuff going to be there as well. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: postgesql commit problem?

2007-03-14 Thread omat * gezgin.com
By the way, when I try to commit using transaction.commit(), I get a TransactionManagementError saying "This code isn't under transaction management", which makes sense, as the cursor is not in a transaction context. On 14 Mart, 17:36, "omat * gezgin.com" <[EMAIL PROTECTED]> wrote: > I am

Re: Checking whether an app is installed?

2007-03-14 Thread James Bennett
On 3/14/07, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote: > Is there a function for checking whether an app was installed in the > current project? Currently, the list of apps on the default admin index page is generated by the 'get_admin_app_list' template tag, which just returns a list of apps.

Re: newforms dateField

2007-03-14 Thread Joseph Kocherhans
On 3/14/07, Grupo Django <[EMAIL PROTECTED]> wrote: > > Hello, I have noticed that the field DateField in the newforms library > doesn't validate all right when introducing data. > I have this code: > > FormClass = forms.models.form_for_model(Model) > form = FormClass(data) > data =

Checking whether an app is installed?

2007-03-14 Thread Aidas Bendoraitis
Hello, Djangoers! Is there a function for checking whether an app was installed in the current project? I have a custom index.html template for contributed administration and I need to check whether to show some links or not. Regards, Aidas Bendoraitis [aka Archatas]

Re: Starting other processes in a view gives me some weird results.

2007-03-14 Thread Ino Pua
On Mar 14, 9:28 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2007-03-13 at 08:10 -0700, Ino Pua wrote: > > Using just 'ls' or something similar does not trigger the bug. You > > have to start a daemon from django in order to trigger it. The > > attached views assume cmd to be a

postgesql commit problem?

2007-03-14 Thread omat * gezgin.com
I am trying to run a custom insert sql on postgres db, but the command does not seem to commit. I searched through this list and saw that there are unresolved discussions like: http://groups.google.com/group/django-users/browse_thread/thread/65adbdfa9bc92a7b/ Following the examples in the

models.ForeignKey problem

2007-03-14 Thread Roland Hedberg
Hi again, I'm trying to model a software project So I have the following models (slightly abreviated): class Project(models.Model): name = models.CharField(maxlength=80) class Software(models.Model): name = models.CharField(maxlength=80) version =

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread mralokkp
Thanks for that TIM A LOT But stuck again AttributeError at /registration/ 'FormFieldWrapper' object has no attribute 'month' Request Method: GET Request URL: http://127.0.0.1:8000/registration/ Exception Type: AttributeError Exception Value: 'FormFieldWrapper' object has no attribute 'month'

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread mralokkp
Thanks for the quickest reply But the problem remains the same TemplateSyntaxError at /registration/ Could not parse the remainder: | date: "F j Y" Request Method: GET Request URL: http://127.0.0.1:8000/registration/ Exception Type: TemplateSyntaxError Exception Value: Could not parse the

Nested edit_inline?

2007-03-14 Thread Daniel Ellison
Hi all, Is there a way to have nested inline editing? For example, I have a Poll model which can have multiple Questions - which, of course, can have multiple Answers. I tried adding edit_inline=models.TABULAR to both the Question and Answer models, but of course, it didn't work. I can edit

Re: DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread [EMAIL PROTECTED]
Just like it told you: Syntax error. You want {{ | date:"F J Y" }} You missed the colon. On Mar 14, 9:21 am, "mralokkp" <[EMAIL PROTECTED]> wrote: > Hi All > Why Django Can't understand the supplied arguments.Why the code is too > rigid ! > > Case is this > XXX | date "F J Y" > >

newforms dateField

2007-03-14 Thread Grupo Django
Hello, I have noticed that the field DateField in the newforms library doesn't validate all right when introducing data. I have this code: FormClass = forms.models.form_for_model(Model) form = FormClass(data) data = request.POST.copy() data['author'] = request.user formulario = FormClass(data)

DATE FORMAT ISSUE AGAIN.

2007-03-14 Thread mralokkp
Hi All Why Django Can't understand the supplied arguments.Why the code is too rigid ! Case is this XXX | date "F J Y" It should read in the format that i choosen but instead of this gives this error TemplateSyntaxError at /mypage/ Could not parse the remainder: | date "F J Y" Request

Re: newb: Django & CountingDown

2007-03-14 Thread Tim Chase
> I have an app that is for online test taking. Most online test > are 30 mins to 2hrs. I need to create count down clock from > when the test is stared. If 30 mins test, then count down will > start from 30 mins : 00 Secs, 29 min: 59 secs and so on. How > do I do this? In a word: unreliably.

Re: Template Problem

2007-03-14 Thread samira
Thanks a lot. My problem solved. On Mar 14, 2:09 pm, "ScottB" <[EMAIL PROTECTED]> wrote: > Hi Samira. > > On Mar 11, 11:56 am, "samira" <[EMAIL PROTECTED]> wrote: > > > Hi every Body, can any body help me? I want to have two folders for my > > templates. One it for general template and other for

Re: Weird session

2007-03-14 Thread Seth Buntin
Well this didn't work: request.session["order_items"] = request.session["order_items"] + [order_item.id] Any other ideas? Is it how Django is implementing sessions or how mod_python and Apache have their child processes? Thanks. Seth --~--~-~--~~~---~--~~

Re: referncing a model within a model

2007-03-14 Thread DuncanM
It's the traversing the multiple relations in my template I'm having trouble with, my models are something similar too: Team(id, name, squad, manager,,) Fixture(id, team_id, date, opposition, location) Result(id, fixture_id, home_score, away_score) In my Team_Details.html template I'm

Re: Weird session

2007-03-14 Thread Seth Buntin
Well this didn't work: request.session["order_items"] = request.session["order_items"] + [order_item.id] Any other ideas? Is it how Django is implementing sessions or how mod_python and Apache have their child processes? Thanks. Seth --~--~-~--~~~---~--~~

Re: How do I make a TextArea box in a form bigger?

2007-03-14 Thread [EMAIL PROTECTED]
Or give it an id or class and just set it in the CSS. On Mar 14, 1:58 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 14-Mar-07, at 12:02 PM, Michael Lake wrote: > > > The textarea is about two lines high only. I want the text entry > > box to be much > > bigger as it will be holding a

Re: low performance of FastCGI deployment

2007-03-14 Thread Alexander Boldakov
The web pages served in my django applications are not static media files, but dynamically generated content (the result of applying XSLT transformation to the XML data retrieved from XML database). I consider the architecture of public site with static version of data and private dynamic site,

newb: Django & CountingDown

2007-03-14 Thread johnny
I have an app that is for online test taking. Most online test are 30 mins to 2hrs. I need to create count down clock from when the test is stared. If 30 mins test, then count down will start from 30 mins : 00 Secs, 29 min: 59 secs and so on. How do I do this?

cool!!!

2007-03-14 Thread aviel571
http://www.fav.co.il/main.php?parent=587=2011 cool!!! --~--~-~--~~~---~--~~ 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

cool!!

2007-03-14 Thread aviel571
http://www.fav.co.il/main.php?parent=587=2011 cool!!! --~--~-~--~~~---~--~~ 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

Re: Model question

2007-03-14 Thread Gustav
Thanks guys, I guess I'm in the right path then! Duncan, it's a good idea but I'm not sure I want to mess with parsing logs in my main app; I'd prefer to centralize everything on the db. Thus, I'd rather go the route suggested by Rubic and Carole. I'll try to implemente it with a "date_now"

Re: why does django display th/td:hover style incorrectly ?

2007-03-14 Thread Steven Armstrong
Aidas Bendoraitis wrote: > I'm not sure about IE7, but all the previous versions of IE certainly > didn't support hover for other html tags than . So it is > not Django issue at all. [...] > If you need some browser specific special > effects, use javascript for IE. > [...] This might help

Jobs Vs Opportunity - The Movie

2007-03-14 Thread mike
Jobs Vs Opportunity - The Movie www.thewealththeory.com/beyond-freedom This is excellent! If you haven't already watched it, check it out now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: referncing a model within a model

2007-03-14 Thread DuncanM
Thank you for the pointer Malcom, however you are only using 2 tables/classes (Player which is directly related to Match) The problem I am having is because I am using 3 tables/classes (Team is related to fixture, Fixture is related to Result) so I do not know how to get around that without

Re: referncing a model within a model

2007-03-14 Thread Malcolm Tredinnick
On Wed, 2007-03-14 at 04:20 -0700, DuncanM wrote: > Thank you for the pointer Malcom, > however you are only using 2 tables/classes (Player which is directly > related to Match) > The problem I am having is because I am using 3 tables/classes (Team > is related to fixture, Fixture is related to

Re: referncing a model within a model

2007-03-14 Thread DuncanM
Thats the problem, I have no idea where to start with it, so do not have any current code for it, or any errors. Duncan On Mar 14, 3:42 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Can you post your current code...and the error you are receiving? > > On Mar 13, 7:13 pm, "DuncanM"

Re: Template Problem

2007-03-14 Thread ScottB
Hi Samira. On Mar 11, 11:56 am, "samira" <[EMAIL PROTECTED]> wrote: > Hi every Body, can any body help me? I want to have two folders for my > templates. One it for general template and other for template related > to member for example. How I can extend from general folder in > member ? Not

Re: Bit torrent class

2007-03-14 Thread ScottB
Hi Hubi. On Mar 10, 12:07 pm, "Hubi" <[EMAIL PROTECTED]> wrote: > i'm looking for bit torrent class for Django which can scrape > information (seed, peer) about the torrent file from trackers. I'm not sure if there is a Python module/library that does this, but if not it should be pretty easy

Re: low performance of FastCGI deployment

2007-03-14 Thread Ivan Sagalaev
Alexander Boldakov wrote: > Django deployment documentation claims the need of flup as the FastCGI > library. Are there any flup features that Django relies on? Nothing specific. Flup is recommended because it's pure Python and easier to install. Also documentation *strongly* recommends not to

Re: why does django display th/td:hover style incorrectly ?

2007-03-14 Thread Aidas Bendoraitis
I'm not sure about IE7, but all the previous versions of IE certainly didn't support hover for other html tags than . So it is not Django issue at all. If you need some browser specific special effects, use javascript for IE. Regards, Aidas Bendoraitis [aka Archatas] On 3/14/07, OudS <[EMAIL

Re: why does django display th/td:hover style incorrectly ?

2007-03-14 Thread OudS
thank you for ur reply, Malcolm :) I define style th/td:hover as a:hover, but a:hover is right, th/ td:hover is none. first I define all style in a single css file, but there has not my anticipant style effect. then, I write a style block in html file: th:hover { background-color:

Re: why does django display th/td:hover style incorrectly ?

2007-03-14 Thread OudS
thank you for ur reply, Malcolm :) first I write a single css file, but there has not my anticipant style. then, I write a style block in html file: th:hover { background-color: white; } It is not correct effect that should display. at last, I saved current page which is being generated

Re: why does django display th/td:hover style incorrectly ?

2007-03-14 Thread Malcolm Tredinnick
On Wed, 2007-03-14 at 02:56 -0700, OudS wrote: > why does django display "th/td:hover" style incorrectly ? > > but "a:hover" is no problem... Please put some effort into supplying enough information that we might be able to understand what problem you are seeing. In this case it might be

why does django display th/td:hover style incorrectly ?

2007-03-14 Thread OudS
why does django display "th/td:hover" style incorrectly ? but "a:hover" is no problem... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: referncing a model within a model

2007-03-14 Thread Malcolm Tredinnick
On Wed, 2007-03-14 at 00:13 +, DuncanM wrote: > I have a schema as follows: [...] > How would I get it so I had a template that showed: > Result > Team A 0 - 3 Team B 22/03/07 > > > e.g. the homeTeam and awayTeam are pulled from Fixture, which pulls > from Team, and Date is pulled from

Re: {% url %} problem

2007-03-14 Thread Malcolm Tredinnick
On Tue, 2007-03-13 at 18:19 +0300, Ivan Sagalaev wrote: > akonsu wrote: > > i think the reason is two entries in the urlpatterns with the same > > view. is this a bug? > > Well, not exactly a bug but a limitation of "reverse" function that {% > url %} uses to do actual resolving. Incidentally

Re: Related foreign fields in admin application

2007-03-14 Thread Atilla
On 14/03/07, Krassimir Grozdanov <[EMAIL PROTECTED]> wrote: > I am a python and Django novice so please excuse me if my question is > too stupid. > > I have 3 models: Regions, Municipalities and Persons. > In the admin interface, when editing the Person object, I want to > limit the choices for

Re: Integrating web services with django

2007-03-14 Thread Malcolm Tredinnick
On Tue, 2007-03-13 at 13:36 +, Nathan Harmston wrote: > Hi, > > I was wondering if anyone had added a web services client to django. > Ie when a user makes a request, "Web service" is an extremely generic term, so you aren't really asking a specific question here. > it is processed by

Re: year archive

2007-03-14 Thread Malcolm Tredinnick
On Tue, 2007-03-13 at 13:30 +, Michel Thadeu Sabchuk wrote: > Hi guys! > > I want to use generic views to show all events on a year. I made use > of year_archive view to accomplish my task. I want to show up the > events on the year page categorized by its month, there won't be a > month

Re: Using different template for different instances of an object.

2007-03-14 Thread Malcolm Tredinnick
On Tue, 2007-03-13 at 12:52 +0100, Alessandro Ronchi wrote: > I need to make 2 or 3 different templates to be used to show an object. In > the > admin I would like to have a check list to choice wich template I will use to > show it. > > It's possible? Have a field in your model that allows

Re: Is Signal multiple machine safe?

2007-03-14 Thread Malcolm Tredinnick
On Tue, 2007-03-13 at 04:53 +, Alex Dong wrote: > Hi all, > I'm using post_save signal to send a "Your Account is Created" type of > email. Since I have four machines, two django front end server > pointing to two MySQL cluster, I'm wondering is the post_save signal > multiple machine safe?

Re: Starting other processes in a view gives me some weird results.

2007-03-14 Thread Malcolm Tredinnick
On Tue, 2007-03-13 at 08:10 -0700, Ino Pua wrote: > Using just 'ls' or something similar does not trigger the bug. You > have to start a daemon from django in order to trigger it. The > attached views assume cmd to be a command that takes 'start' as a > parameter in order to daemonize it, so for

Re: Allowing no value for a DateField

2007-03-14 Thread Malcolm Tredinnick
On Tue, 2007-03-13 at 08:48 +0100, Roland Hedberg wrote: > Malcolm Tredinnick wrote: > > On Mon, 2007-03-12 at 12:14 +0100, Roland Hedberg wrote: > >> Hi! > >> > >> I have designed a model which contains among other things a couple of > >> DateFields. > >> > >> Some, actually one, of these must

Related foreign fields in admin application

2007-03-14 Thread Krassimir Grozdanov
I am a python and Django novice so please excuse me if my question is too stupid. I have 3 models: Regions, Municipalities and Persons. In the admin interface, when editing the Person object, I want to limit the choices for the Municipalities based on the Region choice (e.g. I want to limit the

Sort by output of arbitrary method

2007-03-14 Thread Mark Engelberg
According to the tutorial: "You can click on the column headers to sort by those values -- except in the case of the was_published_today header, because sorting by the output of an arbitrary method is not supported. " Well, I understand that it would not be as efficient to sort on an attribute

  1   2   >