Re: Template image display issue

2011-09-02 Thread SSozuer
my settings.py file was not configured how to handle static files (images/js/css..) so far i made settings for that. In deployment, or in production there is no issue anymore. Selcuk On Sep 2, 12:35 am, Reinout van Rees wrote: > On 01-09-11 23:25, SSozuer wrote: > > > Hi, &g

Template image display issue

2011-09-01 Thread SSozuer
Hi, that is my index.html template: The index.jpg image in the same directory with template index.html.When i render template, it loads the template but i can't see image in background. Web server is apache2 with wsgi. Thanks Selcuk -- You received this message because you are subscribed

Re: saving several models with one save() call

2011-08-23 Thread SSozuer
sorry, i forgot to mentioned that you first save the A object. On Aug 24, 1:28 am, ernando wrote: > Hi all, > > maybe it's newbie question but I wasn't able to find clear answer/ > solution on it. > > For example, we have the following models: > > class A(models.Model): >     id = models.AutoFiel

Re: saving several models with one save() call

2011-08-23 Thread SSozuer
Exactly i dont know OneToOneField() field's data type. But you can try that, b=B(title='333', altems = a.id) b.save() On Aug 24, 1:28 am, ernando wrote: > Hi all, > > maybe it's newbie question but I wasn't able to find clear answer/ > solution on it. > > For example, we have the following model

Re: Could not connect postgresql database

2011-08-23 Thread SSozuer
I solved the problem. I just added, LD_LIBRARY_PATH=/usr/local/pgsql/lib PATH=/usr/local/pgsql/bin:$PATH lines to my .bashrc startup shell. After that there is no error. Selcuk On Aug 23, 10:50 pm, Landy Chapman wrote: > I reinstalled postgresql after deleting config files.  in > postgre

Re: Could not connect postgresql database

2011-08-23 Thread SSozuer
You're so right, sorry about that. OS: ubuntu 11.04 Database: postgresql 8.4.8 Django Version: 1.3 All of them are running on same machine. I install the current postgresql database version from source code. I think i missed something related to enviroment variables. I think, i just need to "PATH

Re: Could not connect postgresql database

2011-08-23 Thread SSozuer
ent variables. But i dont know how to handle it. thanks again Selcuk On Aug 23, 9:19 pm, SSozuer wrote: > nothing changed... > there are lots of questions about this problem on net , but there is > no point solution > > On Aug 23, 9:09 pm, Subhranath Chunder wrote: > &

Re: Could not connect postgresql database

2011-08-23 Thread SSozuer
n it, and > inserting one specific to your requirement. > You should probably try it out. And don't forget to restart the db server > everytime you make a change. > > > > > > > > > > On Tue, Aug 23, 2011 at 11:23 PM, SSozuer wrote: > > i am taki

Re: Could not connect postgresql database

2011-08-23 Thread SSozuer
nd what is going on Selcuk On Aug 23, 8:12 pm, Subhranath Chunder wrote: > You may try to test the connection using the command line interface 'psql'. > > > > > > > > > > On Tue, Aug 23, 2011 at 10:39 PM, SSozuer wrote: > > Settings in postgresql

Re: Could not connect postgresql database

2011-08-23 Thread SSozuer
Settings in postgresql.conf are ok. And also postgresql is running without no problem. As i said, i can connect database with pgAdmin with no error. Selcuk On Aug 23, 8:03 pm, Landy Chapman wrote: > Also did the the server actually start?  On debian, >   /etc/init.d/postgresql start > > > > > > >

Re: Could not connect postgresql database

2011-08-23 Thread SSozuer
l checked the /var/run/postgresql/... directory. But there is no directory called that. I'll reinstall postgresql from package, the current was installed from source code thanks for advice Selcuk On Aug 23, 6:06 pm, Simon Riggs wrote: > On Tue, Aug 23, 2011 at 2:05 PM, SSozue

Re: Could not connect postgresql database

2011-08-23 Thread SSozuer
In addition i can connect database with pgAdmin III without any error... On Aug 23, 4:05 pm, SSozuer wrote: > Hi guys, > When i was checking the database connection,i am taking that error: > >  File "", line 1, in >   File "/usr/local/lib/python2.7/dist-packages/

Could not connect postgresql database

2011-08-23 Thread SSozuer
Hi guys, When i was checking the database connection,i am taking that error: File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/django/db/backends/ __init__.py", line 250, in cursor cursor = self.make_debug_cursor(self._cursor()) File "/usr/local/lib/python2.7/dist-packages