tanx
On Mon, Aug 2, 2010 at 11:54 AM, Jirka Vejrazka wrote:
> os.path is a standard Python module, you do have it already.
>
> Cheers
>
> Jirka
>
>
> On 02/08/2010, yalda.nasirian wrote:
> > hi
> >
> > note
> >
> > If you want to
So "import os"
On 2 August 2010 05:57, yalda.nasirian wrote:
> hi
> when i type import sys or os i have error that unknown os
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroup
os.path is a standard Python module, you do have it already.
Cheers
Jirka
On 02/08/2010, yalda.nasirian wrote:
> hi
>
> note
>
> If you want to be a bit more flexible and decoupled, though, you can
> take advantage of the fact that Django settings files are jus
hi
note
If you want to be a bit more flexible and decoupled, though, you can
take advantage of the fact that Django settings files are just Python
code by constructing the contents of TEMPLATE_DIRS dynamically, for
example:
import os.path
TEMPLATE_DIRS = (
os.path.join(os.path.dirname
hi
when i type import sys or os i have error that unknown os
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr
---
> this application is to make a report(reportlab,xhtml2pdf,pisa ) .it
> works fine on my OS( Ubuntu )
> But the images could not display on other OS(Windows)
> look at my templates source code i try to works on cross platforms such
> as linux ,windows.
> A
and this is mytemplate
---
-
this application is to make a report(reportlab,xhtml2pdf,pisa ) .it works
fine on my OS( Ubuntu )
But the images could not display on other OS(Windows)
look at my templates source code
On Dec 6, 10:07 am, dayvo <[EMAIL PROTECTED]> wrote:
> Good question. That could affect the app if I were using relative
> path's or relying on the environment to locate files. The path's I'm
> using in the app are stored are absolute paths. They work correctly
> for path's that don't have un
Solved.
I had to surround my folderpath field with smart_str according to
http://docs.djangobrasil.org/ref/unicode.html#ref-unicode
The only change needed in the example was on the last line:
[EMAIL PROTECTED]:/home/published/www/django/catalog/music# cat demo.py
import os
import music.models
On Fri, Dec 5, 2008 at 6:07 PM, dayvo <[EMAIL PROTECTED]> wrote:
>
> Good question. That could affect the app if I were using relative
> path's or relying on the environment to locate files. The path's I'm
> using in the app are stored are absolute paths. They work correctly
> for path's that d
from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
from django.contrib.auth.models import User
import datetime
class TagItem(models.Model):
foreignID = models.IntegerField()
description = models.
Hello,
> The path in this demo contains "El Camarón de la Isla", where the
> accent character is the trouble maker.
Can you post your music.models?
Best regards,
Carlos.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
Good question. That could affect the app if I were using relative
path's or relying on the environment to locate files. The path's I'm
using in the app are stored are absolute paths. They work correctly
for path's that don't have unicode characters in them. My Django app
works correctly with %
What locale settings do you have set in the environment of your user
account? These will not be getting used in context of Apache.
Graham
On Dec 6, 9:21 am, dayvo <[EMAIL PROTECTED]> wrote:
> Thanks for the response Andy.
>
> The code does work fine in the interpreter. It's when the code is
> c
Thanks for the response Andy.
The code does work fine in the interpreter. It's when the code is
called from a web page where it throws an error. I know it has
something to do with unicode but I can't understand why os.stat is
behaving differently. To test from a view:
;, "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import django
>>> import test
True
Seems to work just fine, there's nothing I've seen that fiddles with
os.path. What is more likely: in one situat
os.path.exists behaves differently if called from a django app. Why?
Can I work around this? I need to check if pathnames exist where the
path may have special/unicode characters. I also need to open files
from that path.
The path in this demo contains "El Camarón de la Isla", where the
accent
17 matches
Mail list logo