URLConf

2010-06-16 Thread Siddharth. S
Hi,

I did the following to allow the page to be loaded with or without the
'/' at the end:

(r'^mysite(/*)$', redirect_to, {'url':'/mysite/home/'}),

in URL patterns. I got an error page, and the following error:

Exception Type: TypeError at /mysite/
Exception Value: redirect_to() got multiple values for keyword
argument 'url'

Can you tell me what the problem is? Is there sufficient information?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: File upload limits

2011-06-05 Thread Siddharth S
I'm running apache2 on the server. But as I mentioned, a parallel site based
on PHP is able to take file uploads larger than 1Mb. So, I guess it isn't an
apache configuration problem.

On Sun, Jun 5, 2011 at 9:38 PM, ionic drive  wrote:

> This i guess is not a django setting.
> Its a setting of your webserver (Nginx, Apache2, etc.)
>
> If you do use Nginx as an example, this setting would be
> client_max_body_size.
>
> http://www.rockia.com/2011/01/how-to-change-nginx-file-upload-size-limit
>
> good luck
> scrapper
>
>
>
> On Sun, 2011-06-05 at 06:57 -0700, Siddharth Swaminathan wrote:
> > Hi,
> >
> >
> > I have a django project where I have a form to upload files. The
> > problem is that I'm not able to upload files larger than 192Kb.
> > Is there some django setting that can be used to change this
> > behaviour?
> >
> >
> > Also, I've eliminated the possibility of apache configuration
> > problems, coz a parallel drupal site on the same server is able to
> > accept files larger than even 1Mb.
> >
> >
> > Any help would be appreciated.
> >
> >
> > Thanks in advance,
> > Siddharth Swaminathan
> >
> > --
> > 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/-/VjJXMVhZeWE2WHNK.
> > 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 this group at
> > http://groups.google.com/group/django-users?hl=en.
>
>
> --
> 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 this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Siddharth. S,
Dept. of Mechanical Engineering,
Indian Institute of Technology, Madras.

-- 
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 this group at 
http://groups.google.com/group/django-users?hl=en.