Re: Getting the last modified datetime from a DateTimeField

2012-06-06 Thread Derek
Please read: http://stackoverflow.com/questions/1737017/django-auto-now-and-auto-now-add On Jun 7, 8:14 am, Jesus Noland wrote: > Thank you for your reply. > > Ok so if I type out: > > m = Model.objects.get(id=1) > > then > > m.date > > Will give me the date and time of the last time it was save

Re: Getting the last modified datetime from a DateTimeField

2012-06-06 Thread Jesus Noland
Thank you for your reply. Ok so if I type out: m = Model.objects.get(id=1) then m.date Will give me the date and time of the last time it was saved? Because that is not what I am seeing. I am seeing the date the model was first created. On Tuesday, June 5, 2012 12:33:36 PM UTC-7, Jesus Nolan

Re: Accessing Backend DB for UI

2012-06-06 Thread Tanveer Ali Sha
sorry ,I have a Perl back-end running as an API,i want to control that in my front end using Django.How can I do that.? Thank You On Wed, Jun 6, 2012 at 11:13 PM, Kurtis Mullins wrote: > On 05/06/2012 18:04, Ali Shaikh wrote: > >> Hey.. >> >> I am working for project, in that the back-en

django-crispy-forms not displaying button

2012-06-06 Thread Barry Morrison
forms.py = http://dpaste.org/POItz/ html = http://dpaste.org/VsIjL/ Django 1.3.1 crispy-forms 1.1 Not sure why this isn't working. It's simply not generating the necessary for the button to exist. Any help would be GREATLY appreciated! Thanks, Barry -- You received this message because

Re:

2012-06-06 Thread kenneth gonsalves
On Wed, 2012-06-06 at 15:56 -0400, vinoth kumar renganathan wrote: > i am getting the error as django.core.exceptions.ImproperlyConfigured: > Error loading MySQLdb module: No module named MySQLdbin > settings.py > i used mysqldb so how to overcome this problem and my ubuntu is 32bit > so >

Re:

2012-06-06 Thread Hendrik Speidel
Hi, it seems that mysqldb is not installed. Try installing python-mysqldb using apt. If you are using a virtualenv then try this: http://www.saltycrane.com/blog/2010/02/install-mysqldb-virtualenv-ubuntu-karmic/ Good luck! hendrik On 06/06/2012 09:56 PM, vinoth kumar renganathan wrote: hi wh

labels for check-boxes in formsets?

2012-06-06 Thread matru...@googlemail.com
Hey, currently, I puzzling on a solution to do the following: I've got a list of objects defined by a model, e.g persons. I'd like to put a form together to select some of those objects to do something with them (e.g. send an email). The view, which should be created is something like in the adm

"dinamically" add field to form

2012-06-06 Thread Lucas Aride Moulin
Hi, My problem is that I have two classes, "disciplina" and "avaliacao" and what i want to do is when creating or editing a "disciplina" i have the option to add a new field "avaliacao" (with a set limit) and that it be kept together in the DB. Thank you. -- Lucas Aride Moulin, aride.mou...@gma

Re: Accessing Backend DB for UI

2012-06-06 Thread Kurtis Mullins
On 05/06/2012 18:04, Ali Shaikh wrote: > Hey.. > > I am working for project, in that the back-end code is return in perl > and am working for front-end part i.e UI using Django, > Can any one can tell me how to access back-end database which is > return in perl or any othere languages .??

Re: syncdb does not find model, but it does in the shell

2012-06-06 Thread Kurtis Mullins
+1 -- Nice find! On Wed, Jun 6, 2012 at 10:47 AM, jmolmo wrote: > I think that you have to indicate app_label in your separate model > file > According to: > https://docs.djangoproject.com/en/1.4/ref/models/options/ > > -- You received this message because you are subscribed to the Google Grou

Re: syncdb does not find model, but it does in the shell

2012-06-06 Thread jmolmo
I think that you have to indicate app_label in your separate model file According to: https://docs.djangoproject.com/en/1.4/ref/models/options/ class MyTestModel(models.Model): field1=models.CharField(max_length=12) field2=models.CharField(max_length=12) class Meta: app_label =

Re: syncdb does not find model, but it does in the shell

2012-06-06 Thread Kurtis Mullins
I'm pretty sure you can't have a folder named models and that your models file needs to be called models.py -- unless you use some sort of a 'hack' to work around it. I remember seeing a bug posted about this issue which was pretty easily google-able. I just don't remember the bug number off hand,

Re: How to perform a simple search ignoring characters with accents (á, é, í, ó, ú)

2012-06-06 Thread Joni Bekenstein
django-haystack seemed overkill for me. django-unaccent looks pretty good, since I'm using PostgreSQL. I'll take a look into that, thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups

Re: about_dajngo

2012-06-06 Thread kenneth gonsalves
On Wed, 2012-06-06 at 09:59 -0300, Andre Terra wrote: > You can also use the Google Chart Tools, if you only need low to > moderate > complexity charts. > > https://developers.google.com/chart/ very attractive results -- regards Kenneth Gonsalves -- You received this message because you are s

Re: about_dajngo

2012-06-06 Thread Andre Terra
You can also use the Google Chart Tools, if you only need low to moderate complexity charts. https://developers.google.com/chart/ Cheers, AT On Wed, Jun 6, 2012 at 4:11 AM, Pierre de LESPINAY wrote: > If you only need to draw HTML charts, I would suggest to use jQPlot > Le 6 juin 2012 09:06, "

Re: url_dir

2012-06-06 Thread Satvir Toor
> Please take the time to formulate your question properly. If you're > expecting people to take the time to answer you, it's the very least you can > do. sure Sir -- Satvir Kaur satveerkaur.blogspot.in -- You received this message because you are subscribed to the Google Groups "Django use

Re: url_dir

2012-06-06 Thread Daniel Roseman
On Wednesday, 6 June 2012 11:50:54 UTC+1, Satvir Kaur wrote: > > I read the link > https://docs.djangoproject.com/en/1.3/topics/http/urls/ > > above unable to understand what is regular expression in url pattern > e.g r'^pyrheology/plot/tensile/(?P\d+).png$' > > Please take the time to formulat

Re: Antw.: How to edit form filling it with actual data

2012-06-06 Thread Hendrik Speidel
Hi Lucas, you're welcome. Great that you got it working. hendrik On 06/06/2012 03:26 AM, Lucas Aride Moulin wrote: Sorry about the flood but I made it. I removed the "request.POST" of the "else", and it worked. Thank you Hendrik. Problem solved 2012/6/5 Lucas Aride Moulin

Re: url_dir

2012-06-06 Thread bruno desthuilliers
On Jun 6, 12:50 pm, Satvir Toor wrote: > I read the linkhttps://docs.djangoproject.com/en/1.3/topics/http/urls/ > > above unable to understand what is regular expression in url pattern > e.g r'^pyrheology/plot/tensile/(?P\d+).png$' Do you mean "I don't understand where's the regular expression pa

running a task in fabfile from django

2012-06-06 Thread umit sethi
Hi, I have a fabric task eg- def run_task(): #code here >From the command prompt I run this task: fab -c env.fabricrc run_task - H hostnamr How can I run this task from django?I click on a button on a webpage in django app and it should do this. How can I achieve this? -- You received this me

Re: url_dir

2012-06-06 Thread yati sagade
it means 1 or more digits (0-9) On Wed, Jun 6, 2012 at 4:20 PM, Satvir Toor wrote: > I read the link > https://docs.djangoproject.com/en/1.3/topics/http/urls/ > > above unable to understand what is regular expression in url pattern > e.g r'^pyrheology/plot/tensile/(?P\d+).png$' > > > > > > -- >

Re: url_dir

2012-06-06 Thread Satvir Toor
I read the link https://docs.djangoproject.com/en/1.3/topics/http/urls/ above unable to understand what is regular expression in url pattern e.g r'^pyrheology/plot/tensile/(?P\d+).png$' -- Satvir Kaur satveerkaur.blogspot.in -- You received this message because you are subscribed to the

Re: url_dir

2012-06-06 Thread yati sagade
it says that request to a path(after the project specific url parts are stripped) starting with "pyrheology/plot/str/" followed by one or more digits followed by ".png" (example: pyrheology/plot/str/123.png) will be handled by the view 'pyrheology.views.str_tmc_plot_img' and the number(in the examp

Re: url_dir

2012-06-06 Thread kenneth gonsalves
On Wed, 2012-06-06 at 16:02 +0530, Satvir Toor wrote: > I installed a application source code downloaded from Internet . > Please explain me the following code that exists in urls.py file of > the project. > url(r'^pyrheology/plot/str/(?P\d+).png$',\ > 'pyrheology.views.str_tmc_plot_img',\

Re: url_dir

2012-06-06 Thread bruno desthuilliers
On Jun 6, 12:32 pm, Satvir Toor wrote: > Please explain me the following code that exists in urls.py file of > the project. > url(r'^pyrheology/plot/str/(?P\d+).png$',\ >         'pyrheology.views.str_tmc_plot_img',\ >         name='pyrheology-str-tmc-plot-img'), https://docs.djangoproject.com/

Re: url_dir

2012-06-06 Thread kooliah
On 06/06/2012 12:32 PM, Satvir Toor wrote: I installed a application source code downloaded from Internet . Please explain me the following code that exists in urls.py file of the project. url(r'^pyrheology/plot/str/(?P\d+).png$',\ 'pyrheology.views.str_tmc_plot_img',\ name='pyr

url_dir

2012-06-06 Thread Satvir Toor
I installed a application source code downloaded from Internet . Please explain me the following code that exists in urls.py file of the project. url(r'^pyrheology/plot/str/(?P\d+).png$',\ 'pyrheology.views.str_tmc_plot_img',\ name='pyrheology-str-tmc-plot-img'), -- Satvir Kaur sa

Re: Accessing current URI from template tag

2012-06-06 Thread bruno desthuilliers
On Jun 6, 10:27 am, Swaroop Shankar V wrote: > Hello All, > > Well my question is on how to get the current URI in a template tag. You'll have to use a RequestContext in the views rendering the templates where you use this templatetag, and activate the django.core.context_processors.request conte

Accessing current URI from template tag

2012-06-06 Thread Swaroop Shankar V
Hello All, I would like to create a template tag which when called from the template will automatically get the current URI and do the necessary logical stuffs. Well my question is on how to get the current URI in a template tag. Hope someone got a solution to it. Thanks and Regards, Swaroop Sha

Re: . delete() don't work

2012-06-06 Thread bruno desthuilliers
On Jun 5, 7:22 pm, Lucas Aride Moulin wrote: > The syncdb worked. Isso didn't know that the delete() need a table. > Thanks, It doesn't, of course. The problem you report is surprising to say the least... -- You received this message because you are subscribed to the Google Groups "Django user

Re: about_dajngo

2012-06-06 Thread Pierre de LESPINAY
If you only need to draw HTML charts, I would suggest to use jQPlot Le 6 juin 2012 09:06, "kenneth gonsalves" a écrit : > On Wed, 2012-06-06 at 12:26 +0530, Satvir Toor wrote: > > On Wed, Jun 6, 2012 at 10:47 AM, kenneth gonsalves > > wrote: > > > > > any library that you ordinarily use in your

Re: Python IDLE

2012-06-06 Thread JussiJ
On May 28, 5:37 am, coded kid wrote: > I'm in a big mess now, I've lost my projects due to this errror. I'm > on windows, The Zeus IDE has support for Python: http://www.zeusedit.com/python.html Zeus is a fully scriptable programmer's editor any you can even write Zeus scripts in Python.

Re: about_dajngo

2012-06-06 Thread kenneth gonsalves
On Wed, 2012-06-06 at 12:26 +0530, Satvir Toor wrote: > On Wed, Jun 6, 2012 at 10:47 AM, kenneth gonsalves > wrote: > > > any library that you ordinarily use in your html pages will work. > What are the major uses of numpy and matplotlib libraries in django. django is just python - any python l