Much more well explained than my half-assed attempt. I'd read Graham's
article before and totally forgotten about it!
On 5 July, 07:46, Graham Dumpleton wrote:
> Also read:
>
> http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html
>
> where I explain a bit about startup steps.
>
The link to your snippet doesn't work for me.
It sounds like a neat idea. However, I've never come across a
situation where I've needed to do that in 2.5 years of developing
Django templates, and, whilst I agree that we don't want to get into a
holy war about whether stuff should be done in templa
Hi all,
I've got 2 Multiplechoicefields into my form both bounded to a
queryset. The data in both fields are relational. This means that when
I click on the 1st field and I select for example 'Netherlands' in the
second field only the footballclubs of 'Netherlands' should show,...
I should like t
You're right I sniped the date_time field when pasting in the model
after leaving out some extranous detail. Doh!
Ordering by date_time mean't I had duplicates despite grouping by
site. Like you say printing out the query may actually help me
understand what is going on under the hood.
After post
Hello,
Am I the only one having this problem ? Nobody can help me ?
If this does not work, is there a workaround ?
Thank you
On 2 juil, 11:38, orgoz wrote:
> Hi,
>
> This is my first message here, and I am sorry for my poor english...
>
> I am trying to excecute some distance lookup but I have
I'd only use extra as a total last resort as it often results in poor
portability between DB backends. That said if you're only ever going
to stick to one you might not care.
Django introduced F objects in 1.1. The documentation is not great and
my experiments with it haven't been a massive succes
On 4 juil, 23:26, vanderkerkoff wrote:
> Evening all
>
> I've just moved a really old django project of ours over to a new
> machine, newer python, and newer mysql.
>
> I'm using a mentally old version of django, revision 5783.
>
> The move has gone tickety boo, we're using nginx instead of ligh
Hello,
I'm writing an application which has to be translated in English and
Italian.
The problem is that italian adjectives change form according to the
gender of the word they are referred to.
E. g. "is active" can be translated as 'è attivo' or 'è attiva'.
My question is: is it possible to speci
On 3 juil, 10:19, BobAalsma wrote:
> Hi,
>
> I'm trying to find a (good) book or other documentation on how to
> group/organise Django files; I've found some posts on this forum, I've
> found some remarks through Google, but not a "complete" guideline for
> this subject.
>
> I have a background
On Jul 5, 10:17 am, "euan.godd...@googlemail.com"
wrote:
> The link to your snippet doesn't work for me.
Sorry, it was accidentally double posted and the original was deleted.
Here it is now: http://djangosnippets.org/snippets/2093/.
> It sounds like a neat idea. However, I've never come across
Hallöchen!
George Sakkis writes:
> [...]
>
> To be honest, I never *had to* do it (in the strict sense) either
> but apparently others did ([1-4]). As for the "just put it in the
> view" argument, remember that until last month this was the
> response for people wanting "if" to be a bit smarter :
Thanks Euan, some great info there.
I'll have a dig through the docs for F objects, I wasn't even aware of
them so thanks for point me in that direction!
On 5 July, 10:35, "euan.godd...@googlemail.com"
wrote:
> I'd only use extra as a total last resort as it often results in poor
> portability b
Thanks Bill.
Do you mean even Postgres also should have thrown errors?
My worry is different here. The characters that I am getting are valid
contents of a HTTP URL, and my parser is able to parse them and put in
database. However, the Django interface is not able to read it. If I
am required to a
Hello,
i have the same problem, the decimal field input is not localized by
default in admin. (Works in changelist.) So it shows and accepts only
dot as decimal separator.
It looks that admin doesnt set localize parameter in Field class init.
(Its False by default.)
I didnt found a ticket exactl
Awesome, I had exactly the same problem and by chance we're on
Rackspace too.
I added the two lines to that file exactly as shown in the Django
docs, restarted httpd, and now Sorl can handle thumbnails with unicode
chars in them.
cheers
On Jun 27, 4:44 pm, Federico Capoano wrote:
> Thanks for y
I have the following xml. how do I pass the image to a file.
http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://
schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://
exception.core.j
Hi,
I've planned to build a blog widget for my Django website (http://skeedy.com
).
Does exists a Django module/application to help me to manage it ?
I think about something like http://widget.collecta.com/
And how to manage Django and django-socialauth authentication with it ?
Thanks
Didier Ra
On 2010-07-05, at 8:09 AM, Bjørn Høj Jakobsen wrote:
> I have the following xml. how do I pass the image to a file.
This isn't really relevant to Django.
There are libraries in Python for parsing XML, try using those:
http://docs.python.org/modindex.html#cap-X
There are also SOAP libraries:
I have mixed models with admin in my example. Sorry.
It should be like this:
### models.py
[...]
class JobForm(ModelForm):
def __init__(self, *args, **kwargs):
super(JobForm,self).__init__(*args,**kwargs)
self.fields['price'].localize = True
...
[...]
###
### admin.py
class
Have you tried giving the message different IDs and, in the English po
file, translating them to the same string while in the italian
language file translating to the same string? Silly example:
###it/myapp.po
#: .\myapp\models.py:39
msgid "is active (m)"
msgstr "è attivo"
#: .\myapp\models.py:87
On Jul 2, 10:44 pm, Bill Freeman wrote:
> What might be of help is adding the IP address to /etc/hosts, if you are
> on linux.
I have the same problem regarding djangoproject.com (Firefox 3.6.6 on
Ubuntu). Everything works but Firefox using my default profile: host
and nslookup succeed in reso
How interate over just a slice of form fields in template?
I tried {% for e in form|slice:":5" %} but it appears the slice part
is just ignored.
cs
--
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.
didier rano escribió:
Does exists a Django module/application to help me to manage it ?
And how to manage Django and django-socialauth authentication with it ?
I am running http://pinaxproject.com/ examples at http://pinax.jdmanjon.net/
and it implements a social network project out-of-the-box.
If you are storing un-escaped HTML in your database, you must mark it
as safe when you use it in your templates.
You can use the safe filter for that:
{{ some_variable|safe }}
More information:
http://docs.djangoproject.com/en/dev/ref/templates/builtins/
- Sævar
On Jul 3, 7:31 pm, davidgp wrot
The slice filter only works on lists and apparently form is not a list,
probably a dictionary (that's why you can use form.last_name, for exmaple).
May be you find useful the hidden_fields() and visible_fields() functions
described here:
http://docs.djangoproject.com/en/1.2/topics/forms/#looping-
I want my special admin views extending django admin features as
described in http://www.djangobook.com/en/1.0/chapter17/ page (old
book) at this photo.
http://new-media.djangobook.com/content/en/1.0/chapter17/books_by_publisher.png
How can i do this with django 1.2. Thanks for replies and sorry f
thanks! it works!
my website works now: http://friseurevergleichen.de/
On Jul 5, 1:09 pm, Sævar Öfjörð wrote:
> If you are storing un-escaped HTML in your database, you must mark it
> as safe when you use it in your templates.
> You can use the safe filter for that:
>
> {{ some_variable|safe }}
On Jul 5, 2:25 pm, Torsten Bronger
wrote:
> Hall chen!
>
> George Sakkis writes:
> > [...]
>
> > To be honest, I never *had to* do it (in the strict sense) either
> > but apparently others did ([1-4]). As for the "just put it in the
> > view" argument, remember that until last month this was the
>
Hi,
I also tried your workaround and it fixes the input issue, but if you
edit your model again, the value in the input field is not properly
localized (uses a dot as decimal separator).
Ticket 13546 (ttp://code.djangoproject.com/ticket/13546) seems
relevant to our problem.
I only wonder why the
I'm new to Django and I've been struggling with getting ImageField to
upload images.
I have a very simple model that I want to use to store images:
class WriteupImage(models.Model):
writeup=models.ForeignKey(Writeup)
image = models.ImageField(upload_to="writeup/photos/")
I have a form wi
There is also django-basic-apps.
http://github.com/nathanborror/django-basic-apps
---
Daniel Lathrop
206.718.0349 (cell)
2010/7/5 Juan de Dios Manjón Pérez
> didier rano escribió:
>
>> Does exists a Django module/application to help me to manage it ?
>> And how to mana
I'm using Photologue 3 (/w Image Kit) and am trying to use a related
model as a list-filter in modeladmin.
Basically Gallery has a m2m relation to Photo, in the Photo modeladmin
I want to be able to sort the images by their related galleries
I'm totally stuck.
Example from modals.py
class G
Hi Plaoto,
The blog post below is about the Admin, but I think the principles may
apply to your situation:
Runtime ChoiceField filtering in Django’s admin
http://www.artfulcode.net/articles/runtime-choicefield-filtering-in-djangos-admin/
HTH,
John
On Jul 5, 1:43 am, Plaoto wrote:
> Hi all,
>
>
I have decided to give django a try despite a previous experience
which went bad. I am on Mac OSX 10.6. I used the
bitnami-djangostack-1.1.1-2-osx-x86-installer and went to follow the
tutorial. I ran the python interactive interpreter and tried to import
django wit no luck. I tried to run 'django-a
The easiest solution I've found is to just install it with pip.
Download the tarball for the version you want then run pip install filename.
Of course you'll need to prefix that with sudo if you're installing it
system-wide, but I recommend virtualenv.
I use a Mac for development full-time an
Hi everyone. I'm quite new to python and django. I was wondering if
anyone could shed some light on this topic :
My models.py contains the classes QuestionSet and Question, which
inherits the former.
In the shell, I define a Question object as follows
q1 = Question(script = "How are you?", commen
I am uninstalling BitNami Django.
Where can I get a tarball? (which one should I get? How should I
unpack it? How do i install? what is pip? how do I use virtualenv?)
All I see is third party packages, I'm guessing that's not what I
want??
On Mon, Jul 5, 2010 at 10:45 PM, Shawn Milochik wrote:
>
I found http://www.djangoproject.com/download/
that answers most my questions. I'm sure there will be more to come soon.
Thanks,
Bradley
On Mon, Jul 5, 2010 at 11:05 PM, Bradley Hintze
wrote:
> I am uninstalling BitNami Django.
>
> Where can I get a tarball? (which one should I get? How should I
Hallöchen!
George Sakkis writes:
> On Jul 5, 2:25 pm, Torsten Bronger
> wrote:
>
>> [...]
>>
>> People will want to do *everything* in the template. The lowest
>> rated snippet on djangosnippets currently is an {% exec %}
>> tag. :-)
>
> But then again there is a {% switch %} tag [1] that has
Gath,
Yes, I'm reading up on Django, but I thought if I can learn Django by
hands-on a project that I would eventually be working, then that would
be a good start. Thanks for the link, it seems to be exactly what I
was looking for.
Mak
On Jul 2, 11:00 pm, Gath wrote:
> Won't it be nice to start
Anyone?
--
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...@googlegroups.com.
For more options, visit this gr
Perhaps someone with much more Django experience will correct me, but I am
99% sure that this is impossible.
As I understand it, parameters passed to filter() are translated into SQL
statements. An arbitrary python method that you write for your object can
do any number of things, which might not
can we please add a hint to the docs here:
http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/
for:
WSGIPassAuthorization on
or one will never get HTTP_AUTHORIZATION in request.META
regards
Henrik
Henrik Genssen
h...@miadi.net
Tel. 0451/6195650
Fax. 0451/6195655
miadi Gmb
43 matches
Mail list logo