How to create django custom login page?

2011-04-01 Thread Nge Nge
Hi All I saved the registered user data into my postgresql database. Now I have to create login page. I have to check the requested user name and password are in my database. If user name and password are in my database, redirect to success.html. How should I do? Pls advise me. Thanks nge -- Y

Re: How to disable default authentication/messaging system?

2011-04-01 Thread sanderkrause
I'm not sure whether it's accepted to bump a topic, but does anyone have any idea as to what my problem could be, or how to fix it? Kind regards, Sander On 31 mrt, 14:51, sanderkrause wrote: > In addition to my last message, I have also tried specifying the apps > with the project name in front

Error: No module named mysql.base when trying to sync.db

2011-04-01 Thread nai
I posted the same question on stackoverflow here: http://stackoverflow.com/questions/5509755/problem-with-django-syncdb-on-amazon-ec2 Reproduced Hi all, I'm trying to deploy my project on my EC2 instance. When I run python manage.py validate I get this error Error: No module named mysql.base . I

Re: I want Develop django poll app tuturial

2011-04-01 Thread cha
Im waiting -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit thi

Re: I want Develop django poll app tuturial

2011-04-01 Thread Robbington
Wow thats rude, poll_votes = the amount of votes for option a/b/c/d etc. On Apr 1, 9:00 am, cha wrote: > Im waiting -- 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 unsubsc

Re: WxPython and django

2011-04-01 Thread Mike Ramirez
On Thursday, March 31, 2011 07:28:15 pm you wrote: > You'll need to rewrite the gui code. > You should be able to use the basic html, if it's html and not xml. But you'll have to strip all calls to wx to make it work. Mike -- The final delusion is the belief that one has lost all delusions.

Re: I want Develop django poll app tuturial

2011-04-01 Thread Kenneth Gonsalves
On Fri, 2011-04-01 at 01:00 -0700, cha wrote: > Im waiting for what? -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Payment Gateways

2011-04-01 Thread Venkatraman S
On Wed, Mar 30, 2011 at 12:19 AM, Micah Carrick wrote: > I have used Authorize.Net for years and don't have a single complaint. > For Python/Django interfacing to Authorize.Net, Quantam, or PsiGate I > use quix.pay, which I also wrote: http://pypi.python.org/pypi/quix.pay/ > Thanks Micah for this

Re: Payment Gateways

2011-04-01 Thread Micah Carrick
No problem. ;) On Fri, Apr 1, 2011 at 4:17 AM, Venkatraman S wrote: > > On Wed, Mar 30, 2011 at 12:19 AM, Micah Carrick wrote: > >> I have used Authorize.Net for years and don't have a single complaint. >> For Python/Django interfacing to Authorize.Net, Quantam, or PsiGate I >> use quix.pay, whi

Re: I want Develop django poll app tuturial

2011-04-01 Thread cha
ok .. i know it's the amount of votes for option how can I get it in python -- 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 djang

Re: WxPython and django

2011-04-01 Thread Aref
Thank you Mike. This is what I was looking for before wasting time going down a dead-end road. On Mar 31, 8:28 pm, Mike Ramirez wrote: > On Thursday, March 31, 2011 06:34:42 pm Aref Nammari wrote: > > > Hi Calvin,  I think that there is some misunderstanding about what my > > question was about.

Re: How to create django custom login page?

2011-04-01 Thread gladys
I assume you are saving your user data into a django.contrib.auth.models.User object? I recommend using django's authentication framework, http://docs.djangoproject.com/en/dev/topics/auth/ with all its predefined views for logging in, etc, you will just need to provide the html pages. Now, if you

Re: I want Develop django poll app tuturial

2011-04-01 Thread creecode
April Fools joke right? :-) HA HA LOL! On Apr 1, 1:00 am, cha wrote: > Im waiting Toodle-l.. creecode -- 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 unsu

Re: I want Develop django poll app tuturial

2011-04-01 Thread gladys
For easy reference, models are pasted below. from django.db import models class Poll(models.Model): question = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): poll = models.ForeignKey(Poll) choice = models.CharField(m

Re: Serve a tracking pixel via Django

2011-04-01 Thread Adam Nelson
On Thursday, March 31, 2011 10:56:44 PM UTC-4, Javier Guerra wrote: > > On Thu, Mar 31, 2011 at 7:18 PM, Russell Keith-Magee > wrote: > > Sure. Write a view that returns the content. It's 3 lines of code (a > > couple more if you count imports and whitespace). Added bonus -- it's > > actually mor

Re: best way to define a many-to-one relationship using FreeRadius' existing DB schema

2011-04-01 Thread yolabingo
Solved - you do it like this: class WifiUser(models.Model): username = models.CharField( max_length=64, unique=True) --snip-- class RadiusAccounting(models.Model): radacctid = models.BigIntegerField(primary_key=True, editable=False) username = models.CharField(max_length=192)

admin cannot edit records with 'add' as primary key

2011-04-01 Thread Marwan Al-Sabbagh
Hi, just wanted to confirm that this is a bug before posting it on tracker. Any comments are welcome it will be my first bug report on django :) Problem If you have a model with a primary key field that has the value 'add' you won't be able to edit it in the admin screens. the admin

Re: I want Develop django poll app tuturial

2011-04-01 Thread cha
thank you very much mr-gladys for this effort this is view def results(request, poll_id): p = get_object_or_404(Poll, pk=poll_id) choices = p.choice_set.all() total_poll_votes = sum(c.votes for c in choices) percentage = {} for choice in choices: vote = choice.votes

Accessing object ID in override of model save()

2011-04-01 Thread Nick
Is there a way to access what the ID of a new object being created in the admin? so if you wanted to ovveride the save and then do a get_or_create on another object in another model with a foreignkey back to the object you are creating you would have that ID at your disposal. -- You received thi

Re: DjangoCon US 2011

2011-04-01 Thread Vinicius Mendes
Thanks for the information. Atenciosamente, Vinicius Mendes Engenheiro de Computação Globo.com On Fri, Apr 1, 2011 at 1:48 AM, Shawn Milochik wrote: > The event will definitely take place in Portland, Oregon in September. > > On Apr 1, 2011 12:15 AM, "Vinicius Mendes" wrote: > > > > I work f

Versioning an app and displaying in template

2011-04-01 Thread christian.posta
I would like to get some feedback on how others display the version of their apps to the users of the app. I tag each build/version of the app in SVN when I deploy to my clients, but i'm trying to figure out a good way to report that tag name. I could manually try to put it into the settings.py mo

Rendering only a portion of the page

2011-04-01 Thread LJ
I am building a django web app that has a control panel with various icons. Right now, the icons have href tags that load a new page when the user clicks the icon. I want to change this to instead call a jQuery function that will use ajax, or dajaxice, to render only the content part of the page.

Re: DjangoCon US 2011

2011-04-01 Thread Shawn Milochik
http://www.djangoproject.com/weblog/2010/nov/22/djangocon-us-2011/ -- 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 django-users+un

.Net Developer Job Opening - Valencia, CA

2011-04-01 Thread Makro Tech
Hi This is Vignesh with Makro Technologies, Inc. We have been in business for over 10 years and we are one of the Fast 500 National IT staffing and Solution firms in USA. Our clients include country’s top-notch IT, Healthcare, Pharmaceutical, Financial, Telecom,Government and other industries. St

Re: .Net Developer Job Opening - Valencia, CA

2011-04-01 Thread Russell Keith-Magee
On Saturday, April 2, 2011, Makro Tech wrote: > Hi > This is Vignesh with Makro Technologies, Inc. > We have been in business for over 10 years and we are one of the Fast 500 > National IT staffing and Solution firms in USA. Our clients include country’s > top-notch IT, Healthcare, Pharmaceutica

Re: .Net Developer Job Opening - Valencia, CA

2011-04-01 Thread CLIFFORD ILKAY
On 04/01/2011 06:41 PM, Makro Tech wrote: Hi This is Vignesh with Makro Technologies, Inc. We have been in business for over 10 years and we are one of the Fast 500 National IT staffing and Solution firms in USA. Our clients include country’s top-notch IT, Healthcare, Pharmaceutical, Financial,

Re: .Net Developer Job Opening - Valencia, CA

2011-04-01 Thread Ovnicraft
On Fri, Apr 1, 2011 at 10:00 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > On Saturday, April 2, 2011, Makro Tech wrote: > > Hi > > This is Vignesh with Makro Technologies, Inc. > > We have been in business for over 10 years and we are one of the Fast 500 > National IT staffing and

Read write config from a file. How?

2011-04-01 Thread hollando
Hi, some of my config store in a file not in settings.py. Are there any build in library doing that? Thanks -- 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 t

Re: Read write config from a file. How?

2011-04-01 Thread Addy Yeow
Have you tried http://docs.python.org/library/configparser.html? On Sat, Apr 2, 2011 at 2:34 PM, hollando wrote: > Hi, some of my config store in a file not in settings.py. Are there > any build in library doing that? Thanks > > -- > You received this message because you are subscribed to the Goo