Oracle connection without tnsnames.ora

2009-03-05 Thread hugoto

Hi all, I have a django project using oracle as database engine. In my
local machine this works ok with my local tnsnames.ora, but in the
server I don't have the permission to write in the oracle client
directory, so I cant create the tnsnames.ora. In the docs I've read
that setting both the database host and database port should work
without tnsnames.ora, but I'm getting this error: ORA-12505:
TNS:listener does not currently know of SID given in connect
descriptor
Any clues?

Thanks in advance

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



Re: Oracle connection without tnsnames.ora

2009-03-05 Thread hugoto

Thank you! That works!

On 5 mar, 18:29, "robertmalik...@googlemail.com"
 wrote:
> Edit settings.py and;
> DATABASE_NAME = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=db_hostname)
> (Port=1521))(CONNECT_DATA=(SID=db_sid)))'
>
> Replace the db_sid with your database sid and db_hostname the database
> hostname or IP.
>
> HTH
> Robert
>
> On Mar 5, 1:03 pm, hugoto  wrote:
>
> > Hi all, I have a django project using oracle as database engine. In my
> > local machine this works ok with my local tnsnames.ora, but in the
> > server I don't have the permission to write in the oracle client
> > directory, so I cant create the tnsnames.ora. In the docs I've read
> > that setting both the database host and database port should work
> > without tnsnames.ora, but I'm getting this error: ORA-12505:
> > TNS:listener does not currently know of SID given in connect
> > descriptor
> > Any clues?
>
> > Thanks in advance
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Problems rendering HTML stored in database.

2009-03-06 Thread hugoto

Yeah, the default behaviour in django templates is to escape html
code, so if you render something like hello, the template
will convert it to 

... etc. This is for prevent the script inyections in forms. So if you want to show the raw html as is in the database you have no escape the text with the safe filter: {{ html_text|safe }} On 6 mar, 07:15, nils wrote: > Im running django-1.0.2-final with the django.contrib.admin in my > application. > It's a blog-like application so i implemented tiny-mce (wysiwyg- > editor) in the admin interface. > It saves/deletes/updates as supposed, but the view+template does not > render the HTML-tags, the HTML-tags renders as plain text. > > Any one know why? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---