Re: date display problem?

2012-09-18 Thread Stephen Anto
Hi, How to fetch data, are you fetching single row or multiple rows? offers = Offer.objects.all() for offer in offers: print offer.effective_date If you use like above it will work. pls check your code. Thank you for visiting For Django

Re: My "Contributors" page Conundrum

2012-09-18 Thread JJ Zolper
Melyvn, Thanks for the tip but I'm still having trouble understand how to make this work. If you see the post I sent to Nick that should explain my problem in enough detail. Maybe you can give some advice or any example of some sort? Thanks, JJ On Tuesday, August 28, 2012 2:24:03 AM UTC-4,

Re: My "Contributors" page Conundrum

2012-09-18 Thread JJ Zolper
Nick, Sorry my other very long posted vanished so I'm going to keep it shorter this time. So I was able to implement what you said. Thanks a lot! Only tricky part is I had to change my name in the database to "JJZolper" instead of "JJ Zolper" so that it could find me. So now if you do: http:

Re: Hello World with Django

2012-09-18 Thread Stephen Anto
Hi, It is very simple to say hello world through Django projects, Only 7 steps ahead to say... Pls visit http://www.f2finterview.com/web/Django/17/ its clearly guide you step by step to say hello world via django. Thank you for visiting

Re: date display problem?

2012-09-18 Thread Lachlan Musicman
On Wed, Sep 19, 2012 at 3:51 PM, Navnath Gadakh wrote: > model >class Offer(models.Model): > effective_date = models.DateField() > expiration_date = models.DateField() Nothing wrong here > view.py > HTML = HTML + "" > HTML = HTML + "Offer Desc

problem with html select box values

2012-09-18 Thread Navnath Gadakh
i have project for online shoping in that i use product category and and product names. i have taken product name in select dropdown box. now i want to create offer for any perticular product whatever i selected . but at the time of product name comparison in view it takes only first string

Re: date display problem?

2012-09-18 Thread Navnath Gadakh
model class Offer(models.Model): product_id = models.ForeignKey(Product) merchant_id = models.ForeignKey(Merchant) offer_id = models.AutoField(primary_key=True) description = models.CharField(max_length=100,null=False)#Not NULL effective_date = models.DateField() expirati

Re: Confused by BooleanField

2012-09-18 Thread Lachlan Musicman
Ignore - I've found the documentation. PATH/ref/forms/fields.html#booleanfield required=False cheers L. -- 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 thi

Re: date display problem?

2012-09-18 Thread Lachlan Musicman
On Wed, Sep 19, 2012 at 2:34 PM, Navnath Gadakh wrote: > i have post date variable to view? but when i retrieve date from database . > not displaying on browser We need more information than that - do you mean it's not displaying in a form, in a regular template or in the admin pages? And how ar

Confused by BooleanField

2012-09-18 Thread Lachlan Musicman
Hola, I've written a form that has two BooleanFields on it. They render as text boxes on the page, which is great. All my initial testing included checking the boxes for the two BooleanFields as this is the major use case. I just did a test in which I didn't check the boxes, and I'm getting "Th

date display problem?

2012-09-18 Thread Navnath Gadakh
i have post date variable to view? but when i retrieve date from database . not displaying on browser -- 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.google.com/d/msg/django-users/-/t7LK

Re: Alternatives to CBVs (class based views)

2012-09-18 Thread Russell Keith-Magee
On Tue, Sep 18, 2012 at 7:24 PM, Cal Leeming [Simplicity Media Ltd] wrote: > Russell, > > On a separate note, I am curious about these 'copy-on-call' leaks, and I > have not seen this behaviour documented anywhere else. > > "The abstraction of the copy-on-call can leak in surprising ways. Some use

Django + mod_wsgi url rewriting issue

2012-09-18 Thread Sebastiaan Snoeckx
Hello list I used mod_wsgi to setup my site to rewrite urls according to but now my app doesn't seem to follow its urlconf anymore. Every single request to the wsgi application just returns my default (index) view. example.com/, example.com/a/, example.com/foo/ba

Re: creating a button using dgango

2012-09-18 Thread Nikolas Stevenson-Molnar
Does this get at what you want to accomplish? https://docs.djangoproject.com/en/1.1/ref/contrib/formtools/form-wizard/ _Nik On 9/18/2012 1:00 PM, Ndlovu wrote: > How do I add a simple button, that does fuction loading another > *.html page. Basically a basic next button. > > My forms class looks

Re: SyntaxError Creating New Project

2012-09-18 Thread Bestrafung
I restarted from the beginning using the previously mentioned guide but also a very helpful post on the cpanel.net forums and there were some missed steps and minor misconfigurations. Everthing seems to be working on the webserver side but now have some strange permissions issues that'll go int

creating a button using dgango

2012-09-18 Thread Ndlovu
How do I add a simple button, that does fuction loading another *.html page. Basically a basic next button. My forms class looks like: forms.py: # -*- coding: utf-8 -*- from django import forms class ButtonForm(forms.Form): #what do put here as for the button ) The views class:

Django confirm email. Change value from false to true

2012-09-18 Thread enemybass
This is my model: from django.db import models class Meeting(models.Model): name = models.CharField(max_length=255) time = models.DateTimeField() confirmed = models.BooleanField(default=False) This is my form: from django import forms class Meeti

Re: tree.io installation with django

2012-09-18 Thread Fabian Weiss
YES! I got this error: http://snipurl.com/251cbjb After doing your MySQL Code it WORKS!! :) THX alot! Am Dienstag, 18. September 2012 19:54:17 UTC+2 schrieb Nick Apostolakis: > > On 18/09/2012 08:47 πμ, Fabian Weiss wrote: > > Just I cannot login! :-D > > admin/admin doesn't work.. :/ > > Does

Re: EncryptedField

2012-09-18 Thread lingrlongr
It looks like I solved it by doing this: def __set__(self, instance, value): instance.__dict__[self.field.name] = value if value != getattr(instance, self.field.attname): setattr(instance, self.field.attname, self.field.encrypt(value)) I figured I should be checkin

Re: tree.io installation with django

2012-09-18 Thread Nick Apostolakis
On 18/09/2012 08:47 πμ, Fabian Weiss wrote: Just I cannot login! :-D admin/admin doesn't work.. :/ Does it has something to do with settings.py? ADMINS = ( # ('Your Name', 'your_em...@domain.com'), ) Should I done this before I start installation?? during my installation it failed to

Django Unobtrusive Ajax

2012-09-18 Thread Faraz Masood Khan
I think it is the easiest way to do Ajax in Djangovia attributes: http://codestand.feedbook.org/2012/09/django-unobtrusive-ajax.html -- You received this message because you are subscribed to the Google Groups "Django users"

GeoDjango : external WMS request problem

2012-09-18 Thread arnojc
Hi, In a Django's template I realize a getFeatureInfo request with OpenLayers to an external WMS... and I can't get the result, the response is empty. If I use the same code in a standard html page I can display the result received in text/html format. The problem is that Firebug does not signal

EncryptedField

2012-09-18 Thread lingrlongr
I'm trying to make an encrypted field. I'm using some of the code from the book Pro Django. Generally speaking, it works, but it fails when using Django's admin interface. Here's the code: class EncryptedTextFieldDescriptor(property): def __init__(self, field): self.field = field

[RESOLVED]: Re: Search/Lookup of raw_id_field in inline

2012-09-18 Thread Axel Rau
Am 18.09.2012 um 12:19 schrieb Axel Rau: > I have this inline: > --- > class LocallistentryInline(TabularInline): >model = Locallistentry >extra = 1 >raw_id_fields = ('relaynetfk', 'relayhostfk', 'mailrelationfk', > 'senderdomainfk') >exclude = ('remarks', ) > > class LocallistA

GeoDjango : external WMS request problem

2012-09-18 Thread arnojc
Hi, I use, in a Django's template, a getFeatureInfo request with OpenLayers to an external WMS and I can't get the response... If I use the same code in a standard html page it works fine, it displays the result as I wish. The problem is that I have no error message in Firebug except the reque

Re: Browser get closed when clicked on others links

2012-09-18 Thread m1chael
are you using internet explorer? On Tue, Sep 18, 2012 at 7:50 AM, Pervez Mulla wrote: > Hi, > > I have developed simple website with Django framework. > > When i want to switch to other page, the browser getting closed..:( > > What the problem for this ? > > Thank You > Pervez > > -- > You recei

Issues with validation of multiple forms

2012-09-18 Thread neeraj dhiman
I am using two models in my app and different form for each model, when I tried to validate these two forms , one model is validated but other is not. model.py from django.db import models from django.contrib.auth.models import User class Customer(models.Model): user

Issues with validation

2012-09-18 Thread neeraj dhiman
I am using two models in my app and different form for each model, when I tried to validate these two forms , one model is validated but other is not. model.py from django.db import models from django.contrib.auth.models import User class Customer(models.Model): user

Re: duplicate key value violates unique constraint "django_admin_log_pkey"

2012-09-18 Thread MohamadReza Rezaei
what Groups Google Don't access to my accout for Creating New Groups by Name "AmolMap" and tell this name created by i, but show this Groups? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://grou

Browser get closed when clicked on others links

2012-09-18 Thread Pervez Mulla
Hi, I have developed simple website with Django framework. When i want to switch to other page, the browser getting closed..:( What the problem for this ? Thank You Pervez -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Alternatives to CBVs (class based views)

2012-09-18 Thread Cal Leeming [Simplicity Media Ltd]
Russell, On a separate note, I am curious about these 'copy-on-call' leaks, and I have not seen this behaviour documented anywhere else. "The abstraction of the copy-on-call can leak in surprising ways. Some users will try to set up state using an __init__ method (common practice). If any of the

Re: Extending templates

2012-09-18 Thread Satinderpal Singh
On Tue, Sep 18, 2012 at 3:45 PM, Tom Evans wrote: > On Mon, Sep 17, 2012 at 8:14 AM, Satinderpal Singh > wrote: >> I want to extend a template file into the other file. I get fine >> results when done simply but whenever I use the template containing >> 'for' tag into the other, it does not show

Re: Extending templates

2012-09-18 Thread Satinderpal Singh
> With template 'inheritance', when you extend another template, what > happens is that the named blocks in the parent template are replaced > with the equivalently named blocks in the derived template. > > This means that in the derived template, everything outside of a named > block is ignored. Y

Re: Button action to delete files from server

2012-09-18 Thread xactive
Sebastian I'm not sure if I've done something wrong, but this does not seem to work. What happens now is that the content of the page redirects immediately when it renders, before anything is clicked. Hope you have a solution? Thanks Adam On Monday, September 17, 2012 1:57:48 PM UTC+1, Sebas

Search/Lookup of raw_id_field in inline

2012-09-18 Thread Axel Rau
I have this inline: --- class LocallistentryInline(TabularInline): model = Locallistentry extra = 1 raw_id_fields = ('relaynetfk', 'relayhostfk', 'mailrelationfk', 'senderdomainfk') exclude = ('remarks', ) class LocallistAdmin(ModelAdmin): inlines = [LocallistentryInline, ] si

Re: Django newbie with issues

2012-09-18 Thread Morrti
Hi, Thought I'd update you all and bring this thread to a close. The issue was down to a typo on my part. This was corrected and symlink recreated, things seem to be ok now. Thanks for the help/advice. Thanx, Tim On Saturday, September 15, 2012 12:48:09 PM UTC+1, Karen Tracey wrote: > > On W

Re: Extending templates

2012-09-18 Thread Tom Evans
On Mon, Sep 17, 2012 at 8:14 AM, Satinderpal Singh wrote: > I want to extend a template file into the other file. I get fine > results when done simply but whenever I use the template containing > 'for' tag into the other, it does not show any results. > My code for template which is to be extende

Re: Extending templates

2012-09-18 Thread Tom Evans
On Mon, Sep 17, 2012 at 5:58 PM, Satinderpal Singh wrote: > On Mon, Sep 17, 2012 at 7:31 PM, jondykeman wrote: >> Can you put the code of the template you are extending this one with? > Here is the file that is extending: > > {% extends "report/report_header.html" %} > {% load i18n %} > > > {%

Re: Django newbie with issues

2012-09-18 Thread Morrti
Hi, Thought I'd update you all and bring this thread to a close. The issue was down to a typo on my part. This was correct and symlink recreated, things seem to be ok now. Thanks for the help/advice. Thanx, Tim On Saturday, September 15, 2012 12:48:09 PM UTC+1, Karen Tracey wrote: > > On Wed

Markers on a map in geodjango project

2012-09-18 Thread Coulson Thabo Kgathi
i have be able to follow a tutorial on the link below http://invisibleroads.com/tutorials/geodjango-googlemaps-build.html you can download the code at the link above u dnt have to do everythin. and i have been able to plot a maker, bt i dont want to have the marker appear only when i click on th

Re: duplicate key value violates unique constraint "django_admin_log_pkey"

2012-09-18 Thread Christoph Pingel
Thanks, this helped me too 2 years later.. :-) On Thursday, October 14, 2010 6:23:37 PM UTC+2, reduxionist wrote: > > On 14 ต.ค. 2010, at 22:24, glob...@iamsandiego.com wrote: > > > Hi Folks, > > > > After updating a postgres db for my django app Iam getting this error > > when I try and save ne