yashwanthbabu/Django-BlogAsh

Start using render() in place of render_to_response.

Closed this issue · 8 comments

Read about render(). It is easier and time saving to use render() than using render_to_response(). At certain places in your code, you can replace render_to_response() with render().

Rectified it. Thanks !

@shivakrshn49 Please have a look at it.

@yashwanthbabu I can still see some places where render_to_response was used.

@shivakrshn49 Rectified it. Please check it now.

@yashwanthbabu Ok if you are not using render_to_response anywhere in your code, then don't import it.

Don't import any functions, views, classes etc., that are not using in your code.

@shivakrshn49 Not importing it anymore in the views. Please check it.

If you are using render(), you don't need to pass RequestContext. render() by default takes care of passing RequestContext.

@akshar-raaj Thanks. Rectified.