On Sun, Sep 8, 2013 at 3:49 AM, Harjot Mann <harjotmann1...@gmail.com>wrote:

> On Wed, Sep 4, 2013 at 2:17 PM, Babatunde Akinyanmi
> <tundeba...@gmail.com> wrote:
> > This is usually a side effect of not doing a redirect from the view
> > that handles your submitted form.
>
>
> How can I do it? I mean sometimes if there I fill the form again for
> same job no. It accepts the value on submitting. Why it is not giving
> me an error at that time that it the data for this entry already
> exists. Is it the case of not using primary key. I mean is it
> necessary to use primary key in all the tables. Or if we are using the
> auto_increment id as primary key, can we so it.


So You need to add a unique constraint to your model definition. See
https://docs.djangoproject.com/en/1.6/ref/models/fields/#unique .


> How can we expire a
> session if we so refreshing of page and resubmitting it?. What is the
> best way to do coding in django? How can we maintain an erp based
> website in django? How can we improve the database of django app. How
> can we understand all the logics of django? Which type of applications
> we can make in django? How can we do less code? How can we best learn
> django with proper coding standards? How?
>

All these questions are best answered with a separate thread for each.

>
> --
> Harjot Kaur Mann
> Blog: http://harjotmann.wordpress.com/
> Daily Dairy: http://harjotmann.wordpress.com/daily-diary/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to