Thank you. :) i ll do my best and sort this issue out :) On Feb 20, 2:32 pm, akaariai <akaar...@gmail.com> wrote: > On Feb 20, 11:16 am, kalyani ram <arch.kalu3...@gmail.com> wrote: > > > > > > > > > > > Thank you very much Anssi. I just got it perfect :D I know i am so > > silly with errors. but i am beginner. Thanks alot. > > Can u help me one more error? > > I trying to make a db connection using postgresql and python2.7 > > when i type import postgresql and enter I get the following error: > > > Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit > > (Intel)] on win32 > > Type "copyright", "credits" or "license()" for more information. > > > >>> import postgresql > > > Traceback (most recent call last): > > File "<pyshell#0>", line 1, in <module> > > import postgresql > > ImportError: No module named postgresql > > > Help me plz > > You probably want to import psycopg2. I don't believe that there is a > module called postgresql. Or if there is, it will not be usable with > Django. If you are using Django, you should set the DATABASES in > settings.py correctly, and just use "from django.db import connection" > and use that. See the documentation for how to do this. > > I understand you are a beginner and things can seem cryptic at first. > However, I must encourage you to solve these issues on your own as > much as possible. For example the first problem you had was pretty > well pointed out to you by Python's exception message: > TypeError at /time/plus/1 > 'tuple' object is not callable > Exception location: mysite\urls.py in <module>, line 6 > > - Anssi
-- 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.