How to set form count to 1 in jquery formset?

2014-01-04 Thread Mrinmoy Das
hi, I am using jqury formset for django formset factory. Problem is the form count depends on TOTAL_FORMS. That means if I add 3forms, in the next GET request the page loads with 3 forms and when i click on add-row, again 3forms are added at once, but I want to add only one form. Any help? Mrinmo

Re: How to send a activation email when creating accounts in site?

2014-01-04 Thread 项楠
After a day's trying, I finally solved the both problem, at least seems like. Now, I can create a superuser normally without invoking the activation process, and my system will send an activation email when a user submits valid data. I am not sure my custom system is OK, because you mentioned

Re: How to send a activation email when creating accounts in site?

2014-01-04 Thread Sergiy Khohlov
looks like signal is not sent. i will check this on Monday Many thanks, Serge +380 636150445 skype: skhohlov On Sat, Jan 4, 2014 at 10:47 AM, 项楠 wrote: > I use django 1.6.1 and python 3.3.3 in windows8. I want to build a app named > 'customauth' that supports email activation. I choose to cre

Re: ForeignKey pointing to "nothing"

2014-01-04 Thread Phil Hughes
That was it -- thanks. I usually create a MySQL database to use in development but decided to just use sqlite. So much for my "shortcut". On Saturday, January 4, 2014 4:26:59 AM UTC-6, Russell Keith-Magee wrote: > > > On Sat, Jan 4, 2014 at 9:57 AM, Phil Hughes > > wrote: > >> I have a model whe

Re: ForeignKey pointing to "nothing"

2014-01-04 Thread Russell Keith-Magee
On Sat, Jan 4, 2014 at 9:57 AM, Phil Hughes wrote: > I have a model where a foreign key reference may be undefined when a > record is first created. In particular, I have the following in my model > seller = models.ForeignKey(User, related_name='+', blank=True, > null=True) > > The form acc

How to send a activation email when creating accounts in site?

2014-01-04 Thread 项楠
I use django 1.6.1 and python 3.3.3 in windows8. I want to build a app named 'customauth' that supports email activation. I choose to create my own user model from the django.contrib.auth.models.AbstractBaseUser , not a profile model that holds a OneToOneField to django build-in User model. Thi

How to build a app with a custom User model that supports email activation?

2014-01-04 Thread 项楠
I use django 1.6.1 and python 3.3.3 in windows8. I want to build a app named 'customauth' that supports email activation. I choose to create my own user model from the django.contrib.auth.models.AbstractBaseUser , not a profile model that holds a OneToOneField to django build-in User model. Thi