Django admin raises CSRF verification failed when changing from DEBUG True - > False

2016-07-20 Thread Muhammed Riyas
Hi All, I am having a difficulty with my Django site. In which I was running smoothly in dubug mode(DEBUG = True). While changing it to DEBUG = False (Also set ALLOWED_HOSTS = ['*']) , it raises error when logging in to admin " Forbidden (403) CSRF verification failed. Request aborted. More in

why the else statement {% else %} is not working...?

2012-11-19 Thread muhammed riyas
Employee List {% if employees %} {% for employee in employees %} {{ employee.employee_name }} {% endfor %} Click here to remove all employees {% else %} Sorry there is no employees yet :( {% endif %} Thanks in advance. -- You received this message bec

ViewDoesNotExist'module ' object has no attribute 'Form'

2012-11-15 Thread muhammed riyas
while using django forms i gt an error 'view does not exist' from django import forms class Employeeprofileform(forms.Form): employee_name = forms.CharField(max_length=100) employee_number = forms.IntegerField() employee_email = forms.EmailField() employee_mobilenumber = for

Re: Exception Type: TypeError Exception Value: individual() takes exactly 2 arguments (1 given)

2012-11-12 Thread muhammed riyas
sorry:) On Monday, 12 November 2012 15:09:09 UTC+5:30, Daniel Roseman wrote: > > On Monday, 12 November 2012 08:37:44 UTC, muhammed riyas wrote: > >> thanks it works fine, but the if statement is not working,,, why? it >> always gives the first result?. >&g

Re: Exception Type: TypeError Exception Value: individual() takes exactly 2 arguments (1 given)

2012-11-12 Thread muhammed riyas
9]) > > Sent from my iPhone > > On Nov 12, 2012, at 12:49 AM, muhammed riyas > wrote: > > Request Method:GET > Request URL:http://localhost:9744/employee/1/ > Exception Type:TypeError > Exception Value:individual() takes exactly 2 arguments (1 given) > Excepti

Exception Type: TypeError Exception Value: individual() takes exactly 2 arguments (1 given)

2012-11-11 Thread muhammed riyas
Request Method:GET Request URL:http://localhost:9744/employee/1/ Exception Type:TypeError Exception Value:individual() takes exactly 2 arguments (1 given) Exception Location:/home/user/google_appengine/lib/django_0_96/django/core/handlers/base.py in get_response, line 77 url is (r'^employee/

Re: Digest for django-users@googlegroups.com - 12 Messages in 7 Topics

2012-11-11 Thread muhammed riyas
th Best >-Ashwin. >+91-9959166266 > > > >On Fri, Nov 9, 2012 at 11:24 PM, Javier Guerra Giraldez > > > > >Kurtis Mullins Nov 10 03:51AM -0500 > >Well for development purposes, I just recommend using Django's built-in >&qu