On 1 sep, 16:23, Max <[EMAIL PROTECTED]> wrote:
> Hi,
> I ve been trying to figure out why I can t handle utf-8 properly on my
> production server, while it works perfectly on my local django dev
> server
>
> When I try to run this line
> unicode_data.decode("utf-8")
>
> With data coming from DB
>
On Mon, 2008-09-01 at 16:16 -0700, Henhiskan wrote:
> I had the same error and was fix changing the encoding var in
> setencoding() method from site.py ( in your python installation)
> I change it from "ascii" to "UTF-8"
Please don't do that. Or if you must, don't recommend it to other
people.
On Mon, Sep 1, 2008 at 4:23 PM, Max <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I ve been trying to figure out why I can t handle utf-8 properly on my
> production server, while it works perfectly on my local django dev
> server
>
> When I try to run this line
> unicode_data.decode("utf-8")
>
What is 'u
On Mon, Sep 1, 2008 at 7:26 PM, Karen Tracey <[EMAIL PROTECTED]> wrote:
>
> You are running an alpha version of MySQLdb on development, so perhaps
> that is causing trouble.
>
I meant MySQL, not MySQLdb. You didn't actually list the MySQLdb levels,
and they could be relevant also.
Karen
--~-
I'm using 1.0 alpha, and had the same problem. Adding
'mimetype':'text/xml' as noted worked perfectly.
thanks for the post!!
On Aug 9, 8:25 pm, Valery <[EMAIL PROTECTED]> wrote:
> Hi Julien,
>
> thank you for the answer.
>
> I've just tested your code, the effect is the same. Namely,
> opensear
Fabio Natali wrote:
[...]
> I need a table similar to what you get when entering the admin panel,
> that is a list of all my models inside a certain app.
Hi Fabio!
Following code in your views.py and a for loop in your template will
do the trick:
def index(request):
models_list = []
for
Hi everybody,
I'm running Django on a shared-hosting provider with Apache and I walked
through the documentation about FastCGI of the Django website but when I
try to access some page of my web site, instead of seen the html
rendered I just see the dispatch.fcgi as text. Does anyone can help me?
I have a user profile defined in web.core.models.py and I cannot get
this to work at all. I am constantly getting the following:
>>> User.objects.get(username="Alex")
>>> User.objects.get(username="Alex").get_profile()
Traceback (most recent call last):
File "", line 1, in
File "C:\Progra
On Mon, Sep 1, 2008 at 7:22 PM, Alex <[EMAIL PROTECTED]> wrote:
> I have set the following in settings.py (among a thousand other
> combinations).
The value you want is the app label, which is 'core', followed by a
dot, followed by the model name, which is 'userprofile'. So
'core.userprofile'. No
Hi Team,
I followed this tutorial here:
http://www.djangoproject.com/documentation/tutorial02/
up until the step "Make the poll app modifiable in the admin".
I do this step, but I don't get the Poll application in the admin
section.
I'm running debian, apache 2, mod_python and mysql 5. I'm usin
I'm setting up a "Pages" app, and it has a relationship between pages
and sideboxen. (Yes, I'm calling them that.) Sideboxen can have any of
the following: descriptive text, links to pages, and external links.
Now, I have the ManyToManyField on the Sidebox model, so you would add
pages to a sidebo
Oh!
I am talking purely about Django models and queries here.
I have a model Post. I want to find out average number of posts posted
by user :D
On Sep 2, 1:04 am, "James Matthews" <[EMAIL PROTECTED]> wrote:
> On the sides it should say the stats!
>
>
>
>
>
> On Mon, Sep 1, 2008 at 6:09 AM, Will
Karen,
thanks for your answer,
here is some more details on what I am trying to do. I over-simplified
I m sorry:
1 - I would like to realize a search on name fields encode in utf8 so
that a search with key Remi entered by user reutrns all entries that
are equivalent to their canonical form (Rémi
Karen,
thanks for your answer,
here is some more details on what I am trying to do. I over-simplified
I m sorry:
1 - I would like to realize a search on name fields encode in utf8 so
that a search with key Remi entered by user reutrns all entries that
are equivalent to their canonical form (Rémi
Hey everyone,
Fairly new to django and trying to write my first site. I have
stumbled across a problem that i can't seem to find much information
on, or perhaps i am looking in the wrong place? Basically i have a
table in the database with phrases, and i run a query on the table to
get a random p
I'm assuming your link meant to point to this instead
http://www.djangoproject.com/documentation/tutorial02/#make-the-poll-app-modifiable-in-the-admin.
did the main admin site work first, but the Poll app doesn't work?
Check the group, there are lots of cases where a typo may have caused
it.
J
I read that post, and now have a general idea of what to do, but I'm
still confused on the specifics. It doesn't help that my SQL is VERY
rusty.
Am I supposed to use cursor.execute() to do the INITIAL lookup? That
is, instead of calling a filter, or whatnot, on each book entry, I do
a cursor.exec
Yes, the main admin site worked. I'm logged in as a super user,
shouldn't the group not matter?
There are currently no groups. I added one, assigned it all polls
permissions (polls does appear in permissions), and still nothing.
jpe
On Sep 1, 9:26 pm, John M <[EMAIL PROTECTED]> wrote:
> I'm ass
All,
I have an abstract base class for which I'm wishing to write some in-
line doctests. I have read ticket http://code.djangoproject.com/ticket/8108
which addresses it, but I'm hoping to find a work-around.
In the snip below, I want to test the Base.__unicode__() method
without writing a docte
On Sep 1, 2008, at 4:49 PM, davor wrote:
> On the "change password" page (when you go to edit your users in
> Django administration) submit button is floated right and it's
> container () doesn't wrap around it because
> submit button hasn't got clear:both set. or something similar.
I think you
On Sep 2, 2008, at 9:52 AM, MrJogo wrote:
>
> I read that post, and now have a general idea of what to do, but I'm
> still confused on the specifics. It doesn't help that my SQL is VERY
> rusty.
I'm really not the one to be walking you through this, since my own
success was a bit of a fluke,
I'm terribly new and inexperienced, and after 30-40 minutes of
googling I cannot find anything to help my problem:
class roomForm(forms.Form):
authorName = forms.CharField(max_length = "30")
authorWebsite = forms.CharField(max_length = "50")
title = forms.CharField(max_len
I have to say, I discovered my own problem, as usually happens
directly after I make a post for help.
The documentation has listed:
Model FieldForms Field
TextFieldCharField with widget=Textarea
I tried that to no avail. Eventually I found a snippet of co
I'm having problems using get_or_create with a ManyToManyField and I'm
not sure whether the problem is me or Django.
I have two models:
class Tag(models.Model):
name = models.CharField(max_length=256, unique=True)
class Thing(models.Model):
name = models.CharField(max_length=256)
ta
Wow. I guess it wasn't such a stupid question.
foo._meta.fields .. each field will give me att names but not values.
All the methods on the fields that look like they return values only
return the values you give them, WTF?
Foo.objects.filter(pk=1).values()[0] requires 2 calls to the database
Thanks to Magus and FunkyBob in the IRC.
I needed to enable:
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.request',
)
in settings.py
then in my custom tags file:
@register.tag
def random_phrase_title(parser, token):
try:
tag_name, session = t
Hi,
With the Coltrane app, whenever I add a category, it displays
'Category object' instead
of the title, any ideas?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
Did anything ever happen with this? I'm in the same position.
I understand the reasoning behind the restriction but I think it would
be useful to create custom intermediary tables.
- Brad
On Aug 17, 3:04 am, squeakypants <[EMAIL PROTECTED]> wrote:
> Really? Still though, with the intermediary I
I haven't messed with it, so I don't know if it would work or not, but
couldn't you just set the umask of the directory to the permissions
you want?
Clinton
On Aug 26, 2008, at 12:05 PM, Gerard Petersen wrote:
>
> Possibly not the cleanest of solutions, but you could put a sticky
> bit o
On Mon, Sep 1, 2008 at 10:24 PM, Vance Dubberly <[EMAIL PROTECTED]> wrote:
> Hmm perhaps I should do
>
> foo = Foo.objects.filter(pk=1)
> foo_form = FooForm(instance=foo)
> data = foo_form.cleaned_data
Or you could do what the form itself is doing, namely, using the
function django.forms.models.
On Mon, Sep 1, 2008 at 9:11 PM, Max <[EMAIL PROTECTED]> wrote:
>
> Karen,
> thanks for your answer,
> here is some more details on what I am trying to do. I over-simplified
> I m sorry:
>
> 1 - I would like to realize a search on name fields encode in utf8 so
> that a search with key Remi entered
Hello,
I have a question about integrating multiple django sites together,
and I'm hoping to get some advice.
Right now I have several separate, django-based sites, each on
separate servers. I'd like to combine the userbases for each of them,
so I can implement a single sign-on and so when switc
Hi,
I am still learning django and was wondering on the following question
as to how one would go about doing it in the django framework:
If I have a cron job that dynamically creates new tables that are
spawned out of new entries in a main table. For example Table 'Global'
has a new entry 'A' t
101 - 133 of 133 matches
Mail list logo