Re: ORM, Oracle and UTF-8 encoding problem.

2013-01-09 Thread Jani Tiainen

Ok, found source of the problem - but I don't know the solution.

I'm using Oracle client 10.2.0.3.0. It seems that unicode doesn't work 
there.


I compiled cx_Oracle against 11g instantclient 11.2 and it worked just fine.

So it must be something that Django assumes with Oracle and unicode 
capability.


I had cx_Oracle.UNICODE defined always which is checked in the code. I 
don't really know why.



9.1.2013 8:56, Jani Tiainen kirjoitti:

8.1.2013 21:00, akaariai kirjoitti:

I created the following test case into django's test suite modeltests/
basic/tests.py:
 def test_unicode(self):
 # Note: from __future__ import unicode_literals is in
effect...
 a = Article.objects.create(headline='0
\u0442\u0435\u0441\u0442 test', pub_date=datetime.n  ow())
 self.assertEqual(Article.objects.get(pk=a.pk).headline, '0
\u0442\u0435\u0441\u0442 test'   )

This does pass on Oracle when using Django's master branch, both with
Python 2.7 and 3.3.

Django's backend is doing all sorts of trickery behind the scenes to
get correct unicode handling. I am not sure where the problem is. What
Django version are you using?


Sorry about forgotting version info. I tested with 1.3.1 and 1.4.1 and
both gave same behaviour.

And I know that there is quite a lot of trickery going on. I'll try to
figure out what causes that problem.


On 8 tammi, 17:34, Jani Tiainen  wrote:

Hi,

I've been trying to save UTF-8 characters to oracle database without
success.

I've verified that database is indeed UTF-8 capable.

I can insert UTF-8 characters directly using cx_Oracle.

But when I use ORM it will trash characters.

Model I use:

class MyTest(models.Model):
  txt = CharField(max_length=128)

s = u'0 \u0442\u0435\u0441\u0442 test'

i = MyTest()
i.txt = s
i.save()

i2 = MyTest.objects.get(id=i.id)
print i2.txt

u'0 \xbf\xbf\xbf\xbf test'

So what happens here? It looks like Django trashes my unicode string at
some (unknown point).

Additional note:

If I use cursor() from Django connection object strings get broken also.
So it must be django Oracle backend doing something evil for me.

--
Jani Tiainen

- Well planned is half done and a half done has been sufficient
before...








--
Jani Tiainen

- Well planned is half done and a half done has been sufficient before...

--
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: HTML Source on Browser Rendering

2013-01-09 Thread Ryoichiro Kamiya
It's been resolved. The following mimetype property in views.py added the 
 tags.

return render_to_response('prayer/service_index.html', datadict, 
mimetype="application/json; charset=utf-8")

Thanks,
Ryo

On Wednesday, January 9, 2013 11:07:14 AM UTC+9, Ryoichiro Kamiya wrote:
>
> Thanks all for seeing this thread.
>
> With further experiment, the result shows the HTML source with  tag 
> even after emptying the contents of the Django template file. When I tested 
> it in various browsers, the browser automatically added basic HTML 
> structure with  tag on top of my contents. I compared the line endings 
> and encoding with another page that working correctly, but couldn't find 
> any difference.
>
> I'll mark this as closed as it seemed not an issue resulting from Django.
> Everyone, thanks for replying to my question. Have a nice day!
>
> Regards,
> Ryo
>
> On Tuesday, January 8, 2013 2:31:16 PM UTC+9, djangobie wrote:
>>
>> Than  is the issues, as it 'll display the content (inside it) as it 
>> is .. making it preformated.
>> can't guess how you got your code wrapped in it in the first place.
>>
>> Thanks
>>
>> On Tuesday, January 8, 2013 6:29:53 AM UTC+5, Ryoichiro Kamiya wrote:
>>>
>>> Thanks jjmutumi, stauros!
>>>
>>> I am not using "autoescape" tag in my template. Thanks.
>>>
>>> I am just checking the source on the back of HTML source displayed with 
>>> Firebug as jmutumi suggested.
>>> It seemed an auto-inserted  tag before & after the source. (Please 
>>> find the attached. thanks)
>>>
>>> Any ideas how this can be added?
>>>
>>> Ryo
>>>
>>> On Monday, January 7, 2013 5:22:30 AM UTC+9, stauros wrote:

 Hello,
 maybe any "autoescape"  template tags on the wrong spot?


 On Sun, Jan 6, 2013 at 9:46 PM, Joseph Mutumi wrote:

> Hello,
>
> I think you should also check the 'Content-Type' being received 
> client-side
> in the HTTP headers. You can use something curl or Firebug.
>
>
> On Sun, Jan 6, 2013 at 1:40 PM, Ryoichiro Kamiya <
> ryoichir...@gmail.com> wrote:
>
>> Hi,
>>
>> I'm testing Django template rendering in development environment, but 
>> one of the page shows HTML source (after all Django tag executed) 
>> instead 
>> of HTML.
>>
>> 1. Content Type
>> The first thing I check is the Content Type but it's correctly set up 
>> (and it's in header template and shared with other pages that show 
>> contents 
>> correctly.
>>
>> 
>>
>>
>> When I copied & pasted to another template and it works.
>>
>>
>> 2. Browser
>>
>> I checked it in another browser (i.e. Chrome) but it returned the same 
>> result.
>>
>>
>> 3. Reboot runserver
>>
>> also it didn't change the output.
>>
>>
>> Is there anything else I should check?
>>
>> Thanks in advance.
>>
>>
>> Regards,
>>
>> Ryo
>>
>>  -- 
>> You received this message because you are subscribed to the Google 
>> Groups "Django users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/FyjKgMAxm0YJ.
>> To post to this group, send email to django...@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> django-users...@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...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>



 -- 
 Stavros 

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/52PmLUnVVSIJ.
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.



Settings in Pythoncode

2013-01-09 Thread Stefano Probst
Hi!
I want to access variables in my code like in the 
docs.
 
I have a code like the following in settings.py:

> codec_baseString = "...XYZ:::"
>
In a other file (common.py):

> from django.conf import settings
> def num2short(num, baseString = settings.codec_baseString):
> 
> 

I get the error "'Settings' object has no attribute 'codec_baseString' ". 
In the docs stand:

> Note that django.conf.settings isn't a module -- it's an object. So 
> importing individual settings is not possible:
>
Refer this sentence to the example after the sentence or to my plan with my 
own variable?
Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Iy_oQkdb8PcJ.
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: Settings in Pythoncode

2013-01-09 Thread Daniel Roseman
On Wednesday, 9 January 2013 10:13:27 UTC, Stefano Probst wrote:

> Hi!
> I want to access variables in my code like in the 
> docs.
>  
> I have a code like the following in settings.py:
>
>> codec_baseString = "...XYZ:::"
>>
> In a other file (common.py):
>
>> from django.conf import settings
>> def num2short(num, baseString = settings.codec_baseString):
>> 
>> 
>
> I get the error "'Settings' object has no attribute 'codec_baseString' ". 
> In the docs stand:
>
>> Note that django.conf.settings isn't a module -- it's an object. So 
>> importing individual settings is not possible:
>>
> Refer this sentence to the example after the sentence or to my plan with 
> my own variable?
> Thanks.
>


Your error is probably because the definition is evaluated at import time, 
when the values from settings.py have not yet been added to the 
django.conf.settings object. This would work better:

def num2short(num, base_string=None):
if base_string is None:
base_string = settings.codec_base_string

--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/5OaPAPshRvAJ.
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: ORM, Oracle and UTF-8 encoding problem.

2013-01-09 Thread Ian
On Wednesday, January 9, 2013 12:38:28 AM UTC-7, Jani Tiainen wrote:
>
> Tested against latest master. Same behaviour. 
>
> In Oracle backend base.py is following piece of code: 
>
> # Check whether cx_Oracle was compiled with the WITH_UNICODE option. 
> This will 
> # also be True in Python 3.0. 
> if int(Database.version.split('.', 1)[0]) >= 5 and not hasattr(Database, 
> 'UNICODE'): 
>  convert_unicode = force_text 
> else: 
>  convert_unicode = force_bytes 
>
> Which was added in  
>
> Thing is that my cx_Oracle is version 5.1.2, it has cx_Oracle.UNICODE 
> definition. 
>

That sounds correct.  The cx_Oracle.UNICODE type constant is present when 
cx_Oracle is compiled *without* the WITH_UNICODE option (which no longer 
exists in 5.1 anyway).

 

> And Django uses smart_str / force_bytes. 
>
> If I remove that and use convert_unicode as force_text / force_unicode 
> everything works as expected. 
>

Strange, in 5.1 it shouldn't make any difference which is used, as long as 
your NLS_LANG is getting set properly in the backend.  What is your server 
setup?  It seems that sometimes that can get interfered with if you have 
other services using Oracle in the same process.  It shouldn't hurt 
anything though for us to do an additional check for cx_Oracle 5.1+ and 
always use force_text in that case. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/CIo27txyz84J.
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: Settings in Pythoncode

2013-01-09 Thread Stefano Probst
The answer:
I compare my variable with the other setting-variables. All other variables 
are uppercases (-> constant). When I write my variable big, it works.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/odkNeeg6u38J.
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: ORM, Oracle and UTF-8 encoding problem.

2013-01-09 Thread Jani Tiainen

9.1.2013 12:28, Ian kirjoitti:

On Wednesday, January 9, 2013 12:38:28 AM UTC-7, Jani Tiainen wrote:

Tested against latest master. Same behaviour.

In Oracle backend base.py is following piece of code:

# Check whether cx_Oracle was compiled with the WITH_UNICODE option.
This will
# also be True in Python 3.0.
if int(Database.version.split('.', 1)[0]) >= 5 and not
hasattr(Database,
'UNICODE'):
  convert_unicode = force_text
else:
  convert_unicode = force_bytes

Which was added in
>

Thing is that my cx_Oracle is version 5.1.2, it has cx_Oracle.UNICODE
definition.


That sounds correct.  The cx_Oracle.UNICODE type constant is present
when cx_Oracle is compiled *without* the WITH_UNICODE option (which no
longer exists in 5.1 anyway).

And Django uses smart_str / force_bytes.

If I remove that and use convert_unicode as force_text / force_unicode
everything works as expected.


Strange, in 5.1 it shouldn't make any difference which is used, as long
as your NLS_LANG is getting set properly in the backend.  What is your
server setup?  It seems that sometimes that can get interfered with if
you have other services using Oracle in the same process.  It shouldn't
hurt anything though for us to do an additional check for cx_Oracle 5.1+
and always use force_text in that case.



Server is running Oracle Database 10g Release 10.2.0.5.0 - 64bit 
Production. (EE edition)


and charset info:
NLS_CHARACTERSETWE8ISO8859P1
NLS_NCHAR_CHARACTERSET  AL16UTF16

When cx_Oracle (Version 5.1.2) is compiled against 10.2.0.3 client:

I can insert unicode characters directly using cx_Oracle.
I can't insert unicode characters using ORM
I can't insert unicode characters using Django connection.cursor()

When cx_Oracle is compiled against instantclient 11.2 (multinational 
version) I can do all of the above without the problems.



--
Jani Tiainen

- Well planned is half done and a half done has been sufficient before...

--
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: virtualenv setup

2013-01-09 Thread Tom Evans
On Sat, Dec 29, 2012 at 10:01 PM, Phil  wrote:
> Is it because at the top of my "manage.py" it is pointing to my system wide
> python(#!/usr/bin/env python) instead of my virtualenv one? If so how do I
> fix this? I tried changing the path at the top of the manage.py file but
> didn't seem to do anything.

Just to answer this particular point, the way virtualenv works is by
specifying a different lib location for python libraries.

It does that by using a different python interpreter (the one in
/bin/python) - python looks relative to the binary location
for it's library files.

And it chooses a different python interpreter by putting the directory
that python interpreter is loaded from first in your $PATH environment
variable, so that it is chosen instead of your system python package
by your shell. This happens when you activate your virtualenv.

So, by activating your virtualenv, and running "python manage.py", you
are using the shell's PATH resolution to choose which 'python' binary
will be run, and it will be the one in your virtualenv.

However, even if you had run './manage.py', then the shell would look
at the shebang line, the shebang in this case points at "/usr/bin/env
python". What the env command does is to walk your $PATH environment
variable, looking for the supplied argument as a program - just like a
shell when you run a command - and so that too would have used your
virtualenv.

If you have the virtualenv activated, you can run "pip freeze" to list
all the packages that pip thinks are installed in the virtualenv. This
should give you some more information about whether django is
installed or not. You could also try uninstalling and reinstalling it,
which may fix issues if the original installation was damaged or
interrupted for some reason.

Cheers

Tom

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



How to get self.id when saving a new object?

2013-01-09 Thread Andre Lopes
Hi,

I'm without a clue on how to get the sef.id when creating a new object
in Django. I've created a question in StackOverflow. Can someone give
me a clue on this subject?

Please read the question:
http://stackoverflow.com/questions/14234917/django-how-to-get-self-id-when-saving-a-new-object

Any clues?


Best Regards,

-- 
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: How to get self.id when saving a new object?

2013-01-09 Thread Tom Evans
On Wed, Jan 9, 2013 at 12:55 PM, Andre Lopes  wrote:
> Hi,
>
> I'm without a clue on how to get the sef.id when creating a new object
> in Django. I've created a question in StackOverflow. Can someone give
> me a clue on this subject?
>
> Please read the question:
> http://stackoverflow.com/questions/14234917/django-how-to-get-self-id-when-saving-a-new-object
>
> Any clues?

Save the object first.

Cheers

Tom

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



pip search raises "time out"

2013-01-09 Thread Matias Montenegro
I need a hand with this problem. I get a "time out" exception when i run 
"pip search", but "pip install" works fine. I'm using a proxy and I can't 
deactivate it. Does anybody know why it might be happening?
 
http://pastebin.com/2z7SPqf2

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/6xLtHt0FXKMJ.
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: How to get self.id when saving a new object?

2013-01-09 Thread Sergiy Khohlov
 I have no idea why you decided to investigate a bicycle...

Please separate task  in two simple :
1) for editing object  use  url  ///edit
2) for creating new object //new

 Take a look  at generic view.

Many thanks,

Serge


+380 636150445
skype: skhohlov


2013/1/9 Tom Evans :
> On Wed, Jan 9, 2013 at 12:55 PM, Andre Lopes  wrote:
>> Hi,
>>
>> I'm without a clue on how to get the sef.id when creating a new object
>> in Django. I've created a question in StackOverflow. Can someone give
>> me a clue on this subject?
>>
>> Please read the question:
>> http://stackoverflow.com/questions/14234917/django-how-to-get-self-id-when-saving-a-new-object
>>
>> Any clues?
>
> Save the object first.
>
> Cheers
>
> Tom
>
> --
> 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.



Looking for a Senior Django Application Developer

2013-01-09 Thread Andy
All,

Sorry to bug the group with an open position - but thought it was worth a 
try.

I am looking for a senior Django application developer for a year long 
contract in DC at a major media company.  I've posted the complete job 
requisition below, but what we really need is a super solid senior person 
who know Python/Django inside and out.

The hourly rate would be around $80/hr.  You would be required to be 
on-site in NW DC a couple of days/week (probably like 3), although some of 
the work could be done remotely.

Please let me know if you are interested.

Thanks,
Andy Nussbaum
anussb...@aajinteractive.com

=

*Python/Django Developer*

Our client is a well known brand name company in the consumer media 
industry.  For this client we are looking for a Python/Django application 
developer to help build out their existing web site, and support the 
creation of new functionality. The ideal candidate will have experience 
working with consumer facing websites, would not be afraid of Web Services, 
and has experience with CMS’s. The ideal candidate should be comfortable 
working within a team, as well as working independently to develop great 
code.

 

This is a yearlong contract position (2013) for a senior Django application 
developer to work closely with our clients’ chief Applications architect on 
their core architecture supporting their Content Management Systems and 
Membership platforms.

 

Experience:

 

   - Python, Django, Linux/UNIX, PostgreSQL, vi editors, Jira, AJAX, 
   JQuery, Perl

 

   - Successful design, implementation, deployment and maintenance of 
   high-traffic multi-server environment

 

   - Actively participation in design and code reviews

 

   - Ability to troubleshoot and fix production issues

 

   - Development of new software to support business initiatives

 

   - A high degree of initiative and the ability to work independently

 

   - The Senior Application Developer will contribute to application 
   solutions.  Selected candidate must have strong web development and 
   software architecture skills, and be highly collaborative in exciting and 
   agile project environments

 

   - Provide early architectural feedback on feasibility and estimation of 
   business requirements in conjunction with architect.

 

   - Push code deployments to production

 

   - Develop Django web applications to meet stated business requirements.

 

   - Participate in peer reviews, critiques, and knowledge sharing by 
   pushing the boundaries in application development.

 

   - Maintain existing content management systems, including technical 
   troubleshooting to diagnose production or application issues.

 

   - BS/BA degree in Computer Science, Information Technology, Software 
   Engineering or related field, or equivalent work experience with a minimum 
   of five (5) years of experience.

 

   - Exceptional experience and proficiency with the Django framework, 
   utilizing both Python and PostgreSQL or MySQL databases.

 

   - Knowledgeable about the latest trends in application development, 
   including python packages, message queues, GIS and NoSQL databases, 
   continuous integration testing, building solution stacks from front to 
   back, multilayer caching methods, API's, and device-specific solutions.

 

   - The ability to write clean, well-documented code.

 

   - The ability to work on multiple concurrent projects is essential. 
   Strong self motivation and the ability to work with minimal supervision.

 

   - Experience working on large-scale web media-based solutions, 
   especially in regards of scaling large production environments.

 

   - Must be a team-oriented individual, energetic, result & delivery 
   oriented, with a keen interest on quality and the ability to meet 
   deadlines. Selected candidate will be required to handle multiple tasks 
   simultaneously, and requires the ability to accurately gauge project 
   duration, deliver on deadlines, and switch rapidly between projects in a 
   fast paced environment.


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/cK19Tj5jqRMJ.
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: Looking for a Senior Django Application Developer

2013-01-09 Thread Sergiy Khohlov
Please add  comment  that this position for US citizen only.

Looks like this position is not World Wide

Many thanks,

Serge



2013/1/9 Andy :
> All,
>
> Sorry to bug the group with an open position - but thought it was worth a
> try.
>
> I am looking for a senior Django application developer for a year long
> contract in DC at a major media company.  I've posted the complete job
> requisition below, but what we really need is a super solid senior person
> who know Python/Django inside and out.
>
> The hourly rate would be around $80/hr.  You would be required to be on-site
> in NW DC a couple of days/week (probably like 3), although some of the work
> could be done remotely.
>
> Please let me know if you are interested.
>
> Thanks,
> Andy Nussbaum
> anussb...@aajinteractive.com
>
> =
>
> Python/Django Developer
>
> Our client is a well known brand name company in the consumer media
> industry.  For this client we are looking for a Python/Django application
> developer to help build out their existing web site, and support the
> creation of new functionality. The ideal candidate will have experience
> working with consumer facing websites, would not be afraid of Web Services,
> and has experience with CMS’s. The ideal candidate should be comfortable
> working within a team, as well as working independently to develop great
> code.
>
>
>
> This is a yearlong contract position (2013) for a senior Django application
> developer to work closely with our clients’ chief Applications architect on
> their core architecture supporting their Content Management Systems and
> Membership platforms.
>
>
>
> Experience:
>
>
>
> Python, Django, Linux/UNIX, PostgreSQL, vi editors, Jira, AJAX, JQuery, Perl
>
>
>
> Successful design, implementation, deployment and maintenance of
> high-traffic multi-server environment
>
>
>
> Actively participation in design and code reviews
>
>
>
> Ability to troubleshoot and fix production issues
>
>
>
> Development of new software to support business initiatives
>
>
>
> A high degree of initiative and the ability to work independently
>
>
>
> The Senior Application Developer will contribute to application solutions.
> Selected candidate must have strong web development and software
> architecture skills, and be highly collaborative in exciting and agile
> project environments
>
>
>
> Provide early architectural feedback on feasibility and estimation of
> business requirements in conjunction with architect.
>
>
>
> Push code deployments to production
>
>
>
> Develop Django web applications to meet stated business requirements.
>
>
>
> Participate in peer reviews, critiques, and knowledge sharing by pushing the
> boundaries in application development.
>
>
>
> Maintain existing content management systems, including technical
> troubleshooting to diagnose production or application issues.
>
>
>
> BS/BA degree in Computer Science, Information Technology, Software
> Engineering or related field, or equivalent work experience with a minimum
> of five (5) years of experience.
>
>
>
> Exceptional experience and proficiency with the Django framework, utilizing
> both Python and PostgreSQL or MySQL databases.
>
>
>
> Knowledgeable about the latest trends in application development, including
> python packages, message queues, GIS and NoSQL databases, continuous
> integration testing, building solution stacks from front to back, multilayer
> caching methods, API's, and device-specific solutions.
>
>
>
> The ability to write clean, well-documented code.
>
>
>
> The ability to work on multiple concurrent projects is essential. Strong
> self motivation and the ability to work with minimal supervision.
>
>
>
> Experience working on large-scale web media-based solutions, especially in
> regards of scaling large production environments.
>
>
>
> Must be a team-oriented individual, energetic, result & delivery oriented,
> with a keen interest on quality and the ability to meet deadlines. Selected
> candidate will be required to handle multiple tasks simultaneously, and
> requires the ability to accurately gauge project duration, deliver on
> deadlines, and switch rapidly between projects in a fast paced environment.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/cK19Tj5jqRMJ.
> 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 mo

Re: How to get self.id when saving a new object?

2013-01-09 Thread Sergiy Khohlov
I spend some time for this one and propose next solution :

At first your model has only one  image. in this case  you dont need
to  add url() method . Now model is looks like


from django.db import models
from mptt.models import MPTTModel, TreeForeignKey
# Create your models here.
class BicycleAdItemKind(MPTTModel):
def item_kind_image(self):
return ''
% self.image
item_kind_image.allow_tags = True

# Bicicleta completa, Componentes para bicicleta, Acessorios para ciclista
n_item_kind  = models.CharField(max_length=50)
parent   = TreeForeignKey('self', null=True,
  blank=True, related_name='children')
description  = models.TextField(null=True, blank=True)
image= models.ImageField(upload_to='Images',
null=True, blank=True)
date_inserted= models.DateTimeField(auto_now_add=True)
date_last_update = models.DateTimeField(auto_now=True)

def __unicode__(self):
return self.n_item_kind

class MPTTMeta:
order_insertion_by = ['n_item_kind']


Also view  should  be simple :

# Create your views here.
from django.views.generic import CreateView, ListView
from newmodel.models import  BicycleAdItemKind
from newmodel.form import CreatenewmodelForm

class newmodelListView(ListView):
model = BicycleAdItemKind
template_name = 'newmodel/index.html'

class newmodelAddView(CreateView):
model = BicycleAdItemKind
template_name = 'newmodel/create.html'
form_class = CreatenewmodelForm
# please update form valid  method
def form_valid(self, form, **kwargs):
   BicycleAdItemKind.objects.create()


 And  your  urls.py

from django.conf.urls import patterns, include, url
from newmodel.views import newmodelAddView, newmodelListView

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
# Examples:
# url(r'^$', 'andrelopes.views.home', name='home'),
# url(r'^andrelopes/', include('andrelopes.foo.urls')),

url(r'^newmodel/create$', newmodelAddView.as_view()),
url(r'^newmodel/$', newmodelListView.as_view()),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

# Uncomment the next line to enable the admin:
# url(r'^admin/', include(admin.site.urls)),
)


 You  should create   two templates only it is not hard. I think that
form usage is over the top  and you can skip it

Many thanks,

Serge


+380 636150445
skype: skhohlov


2013/1/9 Sergiy Khohlov :
>  I have no idea why you decided to investigate a bicycle...
>
> Please separate task  in two simple :
> 1) for editing object  use  url  ///edit
> 2) for creating new object //new
>
>  Take a look  at generic view.
>
> Many thanks,
>
> Serge
>
>
> +380 636150445
> skype: skhohlov
>
>
> 2013/1/9 Tom Evans :
>> On Wed, Jan 9, 2013 at 12:55 PM, Andre Lopes  wrote:
>>> Hi,
>>>
>>> I'm without a clue on how to get the sef.id when creating a new object
>>> in Django. I've created a question in StackOverflow. Can someone give
>>> me a clue on this subject?
>>>
>>> Please read the question:
>>> http://stackoverflow.com/questions/14234917/django-how-to-get-self-id-when-saving-a-new-object
>>>
>>> Any clues?
>>
>> Save the object first.
>>
>> Cheers
>>
>> Tom
>>
>> --
>> 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.



Looking for a Senior Python Django Developer for Berlin

2013-01-09 Thread charlotte . phillips
My client is a start-up located in the start-up hub of Berlin. The modern 
offices are within the heart of the city centre. The team environment is 
friendly, relaxed and working there has a real start-up feel.
 
They are looking for someone who is creative and motivated. Someone who can 
imagine and implement.
 

Skills: 
2 years+ Python + Django backend development 
Expert in Javascript (OOP, AJAX, DOM) 
Skills in xHTML and CSS 
Cross browser and web UI design. 
Control systems such as Git
Experience in working with APIs (REST, SOAP)
Experience with Service Orientated Architecture (SOA) and XML
 
Desirable: 
Unix/Linux knowledge 
Agile Programming methods (TDD/ BDD/ Scrum

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Jjk9ZeRC2N0J.
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: Looking for a Senior Python Django Developer for Berlin

2013-01-09 Thread Larry Martell
Berlin, New York?

On Wed, Jan 9, 2013 at 9:26 AM,
 wrote:
> My client is a start-up located in the start-up hub of Berlin. The modern
> offices are within the heart of the city centre. The team environment is
> friendly, relaxed and working there has a real start-up feel.
>
> They are looking for someone who is creative and motivated. Someone who can
> imagine and implement.
>
>
> Skills:
> 2 years+ Python + Django backend development
> Expert in Javascript (OOP, AJAX, DOM)
> Skills in xHTML and CSS
> Cross browser and web UI design.
> Control systems such as Git
> Experience in working with APIs (REST, SOAP)
> Experience with Service Orientated Architecture (SOA) and XML
>
>
> Desirable:
> Unix/Linux knowledge
> Agile Programming methods (TDD/ BDD/ Scrum
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/Jjk9ZeRC2N0J.
> 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.



RE: Looking for a Senior Python Django Developer for Berlin

2013-01-09 Thread Charlotte Phillips
Berlin, Germany





Mit freundlichen Grüssen / With best regards,


Charlotte Phillips
Consultant - Germany
Permanent Division
Darwin Recruitment 


O:   00 44 (0) 1277 638 942
F:    00 44 (0) 1277 636 244
E:   charlotte.phill...@darwinrecruitment.com  
W: www.darwinrecruitment.com


UK
Darwin Recruitment
Mayflower House
128a High Street
Billericay, Essex
CM12 9XE
UK
O: 0044 1277 637970
NL
Darwin Recruitment B.V.
8.20, 8th Floor
H Tower, WTC
Zuidplein 36
1077 XV, Amsterdam
Nederland
O: 0031 2030 50070
CH
Darwin Recruitment AG
Beethovenstrasse 47
8002 Zürich
Switzerland


O: 0041 4150 62900



  Please visit Darwin's new website www.darwinrecruitment.com  

  

***
This e-mail transmission is strictly confidential and intended solely for the 
person or organisation to whom it is addressed. It may contain privileged and 
confidential information and if you are not the intended recipient, you must 
not copy, distribute or take any action in reliance on it. If you have received 
this email in error, please reply to the sender as soon as possible and delete 
the message. Please note that we are able to, and reserve the right to, monitor 
e-mail communications passing through our network. The views expressed in this 
email are not that of the company unless specified within the message. The 
inclusion of this footnote indicates that the mail message and any attachments 
have been checked for the presence of known viruses. If you have any comments 
regarding our policy please direct them to i...@darwinrecruitment.com
***



-Original Message-
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
Behalf Of Larry Martell
Sent: 09 January 2013 16:32
To: django-users@googlegroups.com
Subject: Re: Looking for a Senior Python Django Developer for Berlin

Berlin, New York?

On Wed, Jan 9, 2013 at 9:26 AM,
 wrote:
> My client is a start-up located in the start-up hub of Berlin. The 
> modern offices are within the heart of the city centre. The team 
> environment is friendly, relaxed and working there has a real start-up feel.
>
> They are looking for someone who is creative and motivated. Someone 
> who can imagine and implement.
>
>
> Skills:
> 2 years+ Python + Django backend development Expert in Javascript 
> (OOP, AJAX, DOM) Skills in xHTML and CSS Cross browser and web UI 
> design.
> Control systems such as Git
> Experience in working with APIs (REST, SOAP) Experience with Service 
> Orientated Architecture (SOA) and XML
>
>
> Desirable:
> Unix/Linux knowledge
> Agile Programming methods (TDD/ BDD/ Scrum
>
> --
> You received this message because you are subscribed to the Google 
> Groups "Django users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/django-users/-/Jjk9ZeRC2N0J.
> 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.

-- 
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: ORM, Oracle and UTF-8 encoding problem.

2013-01-09 Thread Ian Kelly
On Wed, Jan 9, 2013 at 3:55 AM, Jani Tiainen  wrote:
> Server is running Oracle Database 10g Release 10.2.0.5.0 - 64bit Production.
> (EE edition)
>
> and charset info:
> NLS_CHARACTERSETWE8ISO8859P1
> NLS_NCHAR_CHARACTERSET  AL16UTF16

Sorry, I meant your web server setup.

-- 
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: Admin and ForeignKey

2013-01-09 Thread Kristofer
Update: I wanted to post the resolution to this in case anyone in the future 
finds this post and can't find an answer (like the many I found). 

In my battle with this, I was able to accomplish this using 
django-smart-selects. 
https://github.com/digi604/django-smart-selects 



- Original Message -

From: "Kristofer"  
To: django-users@googlegroups.com 
Sent: Wednesday, January 9, 2013 12:49:28 AM 
Subject: Admin and ForeignKey 

Hello, 

I have three models, defined like the following (code below simplified): 

class Shirt(Model): 
sku = CharField() 
description = CharField() 

class Color(Model) 
name = CharField() 
shirt = ForeignKey(Shirt) 
price = Decimal() 

class Order(Model) 
shirt = ForeignKey(Shirt) 
color = ForeignKey(Color) 

The admin page for shirt shows Color options inline, so that the name and price 
can be typed in. 

My views for the order form from customers are set so that only the appropriate 
colors are displayed for the shirt selected. 

However, in the Admin Order page, the Color field shows all of the colors for 
all shirts. How can I restrict the Color field to only show colors where the 
Color.Shirt foreignkey matches the Order.Shirt foreignkey? 



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



Re: URL_VALIDATOR_USER_AGENT

2013-01-09 Thread m
Hello,
 

> According to : 
>
> https://docs.djangoproject.com/en/dev/ref/settings/ 
>
> URL_VALIDATOR_USER_AGENT 
>
> is deprecated in 1.5. But it's actually been removed. Is that worth a 
> bug report? 
>
> I just stumbled across this myself, django-oscar (a reasonably big 
ecommerce app http://oscarcommerce.com/) fails with Django 1.5 because it 
imports URL_VALIDATOR_USER_AGENT. I think at least the Django docs should 
be updated; a DeprecationMessage would be more helpful, but given how close 
Django is to release, probably that's unrealistic.

I will work with the Oscar project to get the issue on their side resolved.

Regards,

Maik

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/ds54HfT3qSQJ.
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.



I'm looking for a Medium Level Django Job

2013-01-09 Thread Luciano Ferrari
Hello everyone,  

this is my first post in the group,  i've more than one and a half year of 
experience using django. 
I've made several projects using django framework, the last project i made 
was a CMS with public Web Page to Real Estate Company in my 
Country(Uruguay), all the core of the system was made using django and 
other related applications, if you like you can access to the public web 
page www.pauloalvez.com.uy , in order to see the quality of this work.

Now a days i am looking for more development jobs using django framework 
and i am looking forward to increase my skills in it.

If any one of the group like my project and want to work with me, please 
contact me via email at ldat...@gmail.com

Looking forward to work with any of you in the future.

Thank You,
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/ubCi2uTD6ZoJ.
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: show an image in django

2013-01-09 Thread jianhui chen
My setting.py is:
# Initialize App Engine and import the default settings (DB backend, etc.).
# If you want to use a different backend you have to remove all occurences
# of "djangoappengine" from this file.
from djangoappengine.settings_base import *

import os

# Activate django-dbindexer for the default database
DATABASES['native'] = DATABASES['default']
DATABASES['default'] = {'ENGINE': 'dbindexer', 'TARGET': 'native'}
AUTOLOAD_SITECONF = 'indexes'

SECRET_KEY = '=r-$b*8hglm+858&9t043hlm6-&6-3d3vfc4((7yd0dbrakhvi'

INSTALLED_APPS = (
#'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.auth',
'django.contrib.sessions',
'django.contrib.staticfiles',
'djangotoolbox',
'autoload',
'dbindexer',
'shape_practice',

# djangoappengine should come last, so it can override a few manage.py
commands
'djangoappengine',

)

MIDDLEWARE_CLASSES = (
# This loads the index definitions, so it has to come first
'autoload.middleware.AutoloadMiddleware',

'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)

TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.request',
'django.core.context_processors.media',
'django.core.context_processors.static',
)

# This test runner captures stdout and associates tracebacks with their
# corresponding output. Helps a lot with print-debugging.
TEST_RUNNER = 'djangotoolbox.test.CapturingTestSuiteRunner'

ADMIN_MEDIA_PREFIX = '/media/admin/'
TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), 'templates'),)

ROOT_URLCONF = 'urls'
STATIC_URL = '/static/'

# Additional locations of static files
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
"E:/code/python/djangoBook/django-testapp-develop/static",  #this only
used for local debug
)

and I use STATIC_URL in the html

But, it must be something wrong in my setting.py since the project can't
find the image.
Any suggestions? Thanks.



On Tue, Jan 8, 2013 at 4:00 PM, Mario Gudelj  wrote:

> Try removing .. from the path. Also make sure your static path is set
> correctly in settings.py
> On 9 Jan, 2013 1:42 AM, "jianhui chen"  wrote:
>
>> Hi all,
>> I want to show an image in project in which the folder DIR looks like
>> this:
>> images/a.jpg
>> templates/introduction.html
>>
>> In introduction.html I use
>> 
>>
>> It can show image correctly when I open the "introduction.html" directly
>> using firefox, but it shows ""GET /images/gauge_example.jpg HTTP/1.1" 404 "
>> when I open it in http://127.0.0.1:8000/introduction/, and there is no
>> image in the webpage.
>>
>> I used the last method in
>> http://stackoverflow.com/questions/2148738/cannot-get-images-to-display-in-simple-django-site.
>>  But it doesn't work.
>>
>> Could anyone give me some suggestions?
>>
>> jianhui
>>
>>
>>
>>
>>
>>  --
>> 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.
>

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



[X-POST] Fwd: [Ilugc] SQL Injection vulnerability in Ruby on Rails forces websites to close down

2013-01-09 Thread Venkatraman S
FYI:

-- Forwarded message --
From: Natarajan V 
Date: Thu, Jan 10, 2013 at 10:49 AM
Subject: [Ilugc] SQL Injection vulnerability in Ruby on Rails forces
websites to close down
To: ILUG-C 


Hi,

A major security vulnerability found in RoR has forced a government
website to close down. The vulnerability exists in ALL versions of RoR
unless you upgraded in the last two days.

Some Links:
http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/
http://it.slashdot.org/story/13/01/09/1557235/ruby-on-rails-sql-injection-flaw-has-serious-real-life-consequences
https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/61bkgvnSGTQ

As I was telling Karthick during my session, you can never assume that
your code is secure just because you are using some framework. You
should always do your home work, and whatever measures that the
framework takes, can be broken by a very very stupid programmer :D


--
Natarajan
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

-- 
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: ORM, Oracle and UTF-8 encoding problem.

2013-01-09 Thread Jani Tiainen

9.1.2013 19:21, Ian Kelly kirjoitti:

On Wed, Jan 9, 2013 at 3:55 AM, Jani Tiainen  wrote:

Server is running Oracle Database 10g Release 10.2.0.5.0 - 64bit Production.
(EE edition)

and charset info:
NLS_CHARACTERSETWE8ISO8859P1
NLS_NCHAR_CHARACTERSET  AL16UTF16


Sorry, I meant your web server setup.



Windows 7, development server.

Staging server Ubuntu something (propably 10.04 LTS) 64bit

And symptoms were consistent. For some reason Django does something bad 
when it uses smart_str (and whatever that is in 1.5).


If we just force using force_unicode everything works except in older 
versions of cx_Oracle (our server had 5.0.4 or something) connection 
strings can't be unicode for some reason.


--
Jani Tiainen

- Well planned is half done and a half done has been sufficient before...

--
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: ORM, Oracle and UTF-8 encoding problem.

2013-01-09 Thread Ian Kelly
On Wed, Jan 9, 2013 at 11:40 PM, Jani Tiainen  wrote:
> If we just force using force_unicode everything works except in older
> versions of cx_Oracle (our server had 5.0.4 or something) connection strings
> can't be unicode for some reason.

Sure, that's why the check exists in the first place.  Prior to 5.1
cx_Oracle could be built either with Unicode or without.  If the
former, it would accept only unicode strings and would raise an
exception on byte strings.  If the latter, it would be exactly the
opposite.

Does it work for you using force_bytes with 5.0.4?

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