hmmm I guess you are right Nik. Will try it that way. Thanks

On Thu, Jul 5, 2012 at 3:12 PM, Nikolas Stevenson-Molnar <
nik.mol...@consbio.org> wrote:

> Well, the only way to know for sure would be regression testing
> (http://en.wikipedia.org/wiki/Regression_testing). If the project makes
> use of the Django testing functionality
> (https://docs.djangoproject.com/en/1.4/topics/testing/), then you could
> just run the tests.
>
> Otherwise, you would need to look at what you changed and try to
> exercise any code that may have been affected. For example, if you added
> a view and only modified a single views.py file, then exercise some of
> the other views in that file and make sure they still work.
>
> The best thing to do would be to cut your teeth on a new project (where
> you wouldn't have to worry about making a mistake). Then, once you're
> more familiar with Django, come back to the existing project to make
> whatever changes are needed.
>
> _Nik
>
> On 7/5/2012 2:44 PM, Smaran Harihar wrote:
> > Hey Djangoers,
> >
> > I am messing around with a big django project and adding my view by
> > editing the views.py in the project code. This is the code that I have
> > added,
> >
> > def current_datetime(request):
> >    now = datetime.datetime.now()
> >    html = "<html><body>It is now %s.</body></html>" % now
> >    return HttpResponse(html)
> >
> > By this code you must have understood that I am a newbie. So what I
> > want to know, is there a way to check, If my editing the views.py has
> > created some error in the pre-existing project? How can I detect it?
> >
> > --
> > Thanks & Regards
> > Smaran Harihar
> >
> > --
> > 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.
>
>
> --
> 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.
>
>


-- 
Thanks & Regards
Smaran Harihar

-- 
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.

Reply via email to