There's a practical and stylistic issue I don't understand about the
recommended use of Django and I hope someone can enlighten me.
Application design starts with model design and URL structure design.
Each URLconf provides a mapping from URLs to views. There are
several different mechanisms for
Hi,
I think that you need to set the form's object instance when
collecting the POST data too:
form = WrestlerProfileForm(request.POST, request.FILES,
instance=profile)
That way, the image will be set with the existing one, and the form
won't complain when validating.
Hope it helps,
Julien
O
Hi Garret,
> How about sending the template something like:
>
> songs = Recording.objects.filter(represents_song=True)
>
> A custom manager seems like overkill for this situation (If I'm
> understanding you right).
>
> - Garrett
this is indeed a plausible sollution.
I then had to access the s
I've got a model with an ImageField in it:
image = models.ImageField(upload_to='images/wrestlers',
help_text='...')
I can upload images no problem using the Admin app.
I wish to upload images in my own Django app, so I created a form:
class WrestlerProfileForm(forms.ModelForm):
class Meta:
sorry for being annoying
It doesn't work, complains about
'ChannelTypeForm' object has no attribute 'cleaned_data'
when submit on the second step(step1)
http://dpaste.com/72840/
-r
On Aug 21, 1:51 am, rr <[EMAIL PROTECTED]> wrote:
> Don't worry.Formworks now. Thanks a lot.
>
> But would be grea
-- Forwarded message --
From: Daniel Bickett <[EMAIL PROTECTED]>
Date: Wed, Aug 20, 2008 at 9:07 PM
Subject: Prevalent Python/Django academic software
To: [EMAIL PROTECTED]
Is anyone working on any software at present, using django or python
in general, which serves various academ
Don't worry. Form works now. Thanks a lot.
But would be great if you can explain it a bit on how your code works
and the sequence of how process_steps and get_form works as I see it
seems called a few time between steps
Thanks =)
-r
On Aug 21, 1:42 am, rr <[EMAIL PROTECTED]> wrote:
> It works w
It works well. Thanks a lot.
But now another problem. It seems "def done " is not working. It loops
back to the step1 and def done is never called
And do you mind explain how your code works? I did a "print step"
before return form in the def get_from, it prints 0, 1, 0. It seems it
has been cal
Hi,
Thanks for the tip, I found Generic Relations and GenericForeignKey
shortly after I posted this and you confirmed I was looking in the
right place. :)
It seemed a better idea to make Animal abstract since I don't want it
to be able to be instantiated on its own. ZooEnclosure should only be
On Wed, Aug 20, 2008 at 5:13 PM, Burr Settles <[EMAIL PROTECTED]> wrote:
>
> I recently came back to a project I put on hold for a couple weeks,
> and after updating the Django trunk, all my references to
> "request.user.id" are broken. Here is an example view for a rating
> widget:
>
> 1 @login_r
Greetings folks,
I want to dynamically filter what objects are shown in a FK dropdown
that I have in the admin interface. I've got some middleware that I
get the user object with and I want to check if the object belongs to
a group which has access to a site (I've extended group). I tried
using l
Hi all
I am quite new to phyton/django, so please be patient :)
I've been put in charge to maintain a django package that has been
developed for our company last year. I already fixed some bugs/issues,
but there is a bug that goes beyond my limited knowledge of the
framework. I already tried to
I'm planning a get together the night before DjangoCon for people
going to the conference. I figured it would be nice to get to know
each other a bit better before sitting in a conference together all
weekend.
I'm assuming that most people are going to be staying at the Hotel
Avante where the bl
[EMAIL PROTECTED] <[EMAIL PROTECTED]> [2008-08-20 17:49]:
>
>On Aug 20, 2:58 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>wrote:
>> If you like, you can
>> put it on another field in the model, just not an ImageField or
>> FileField.
>
>
>Oops. Bad advice. With newforms-admin, core isn't needed or
On Aug 21, 4:43 am, "Tom Tobin" <[EMAIL PROTECTED]> wrote:
> On Tue, Aug 19, 2008 at 11:16 AM, Tom Tobin <[EMAIL PROTECTED]> wrote:
> > Let me propose a stopgap: edit the django-users and django-developers
> > pages to state, in large bold text, what the purpose of each list is
> > (this is "edit
On Aug 20, 2:58 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> If you like, you can
> put it on another field in the model, just not an ImageField or
> FileField.
Oops. Bad advice. With newforms-admin, core isn't needed or used
anymore at all.
--~--~-~--~~~---~-
2 bruno:
> Not my opinion. Custom tags are to Django's templating language what
> functions are to Python.
I don't think that this is official django developers opinion.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
> I can't see
> how the ifless tag would be useful to the majority of users. Zinovil
> really hasn't provided many real life examples either.
I can tell you lots of examples.
{% ifless accounts.count 50 %}
show Paginator
{% else %}
don't show Paginator
{% endifless %}
> Oh and as far as
I was on the DjangoCon waitlist, and I just got in! yay!
I thought a thread for attendees would make sense. Are you going? Say
hello!
In my case, I'm wanting to say hi because I don't really know any
other Django developers. I've got a handful of posts to this board,
and a handful of bugs posted
Hello all,
I have a custom form class that's called from a separate view file.
That form class has an init method, and it works perfectly when I
don't have to pass any parameters to that method. However, when I pass
in ANY parameter (so it's not a namespace issue) the form simply won't
submit. It'
I've always felt that Django provides a lot of stuff out of the box
that most other frameworks don't. To name a few: auth, admin, sites,
contenttypes, permissions, comments etc. Maybe some have gotten too
much of the good thing and are now wanting for more? :)
On the other hand, even though
On Wed, Aug 20, 2008 at 9:53 AM, PeteDK <[EMAIL PROTECTED]> wrote:
>
>
>
> On 20 Aug., 17:56, "Emily Rodgers" <[EMAIL PROTECTED]> wrote:
> > > -Original Message-
> > > From: django-users@googlegroups.com
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Steve Holden
> > > Sent: 20 August 2008 1
> The numbers don't lie, you've done an *excellent* job supporting
> Django users. I'm just trying to help with an idea on how to keep it
> up when we'll have 50,000 users in this group.
Why would splitting those 50,000 users up into separate and
potentially equally ambiguous groups make them
> I second the on the fact that Malcolm's help has been amazing! Now
> that we are thinking of splitting the mailing list why don't we
> split it according to parts of django! Each one will have a unique
> mailing list. django.contib.admin will be one mailing list etc... jk
Breaking it up b
I'm just wondering, but in general, isn't the use of threadlocals kind
of hacky? Shouldn't there be a more approach to this?
Erik
On 20.08.2008, at 0:12, brentp wrote:
>
> On Aug 19, 9:14 am, patrickk <[EMAIL PROTECTED]> wrote:
>> it´s basically for autopopulating a form. I´m not setting the
> Yes, the current name is ambiguous. So is every other possible name.
Just as a comment from a newbie from over the fence:
As a PHP/Zend Framework developer playing with Django I actually
thought the Django list names and setup to be very simple in
comparison to the Zend Framework ones whic
> > While a google group
> > is a good solution for the developers and evangelists it's not
> > targeted at providing help and support.
>
> Do you have any actual evidence to back that claim up?
Google group is a very generic solution. You've done a great job of
using it to provide support, but
Hello All,
Has anyone done any work on letting the user define a custom sort
order for objects in "nfa"?
I.e. for example extending a base-class that has a single "order"
integer field and up() and down() functions.
Once that is done, I guess it would be relatively easy to override the
"nfa" lis
On Aug 20, 9:38 pm, brentp <[EMAIL PROTECTED]> wrote:
>
> hi, in the latest
> version:http://code.djangoproject.com/browser/django/trunk/django/contrib/adm...
> the signature for save_model is:
> def save_model(self, request, obj, form, change)
>
> there may have been a version with the signatu
Aha, it was httpd.conf
Because I am serving this django app from root I thought I could get
away with - "PythonOption django.root /" which I realise now is
stupid since that is exactly what django removes from the URL for
portability.
Fixed now.
Thanks for all your help guys for pointing me in
Malcom
I see your point, should be fixing the problem - well put.
I have made a couple of changes as laid out in
BackwardsIncompatible...
httpd.conf is like so:
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
P
I second the on the fact that Malcolm's help has been amazing! Now that we
are thinking of splitting the mailing list why don't we split it according
to parts of django! Each one will have a unique mailing list.
django.contib.admin will be one mailing list etc... jk
If this is really a big issue
On Aug 20, 10:27 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm trying to save user info automatically via admin interface. I
> found an example in code.djangoproject.com/wiki/
> CookBookNewformsAdminAndUser and tested it out. It doesn't work. I got
> the following error:
>
>
Thanks a lot for your help Malcom.
Malcolm Tredinnick escribió, El 18/08/2008 0:03:
>
> On Sun, 2008-08-17 at 23:51 +0200, MarC wrote:
>> Hi again,
>> I'm still fighting against it and reading related posts in the mailing list
>> archive with no
>> success... Now I just found it won't work eit
I recently came back to a project I put on hold for a couple weeks,
and after updating the Django trunk, all my references to
"request.user.id" are broken. Here is an example view for a rating
widget:
1 @login_required
2 def rate(request, song_id):
3 song = get_object_or_404(Song, pk=song_id)
Malcolm Tredinnick wrote:
> Because over the last three years, this group has done an *excellent*
> job at providing help and support. And, yes, I have the credibility to
> make that claim: I have never posted a request for support on this list
> and have posted the most number of mails to the lis
On Aug 20, 12:57 pm, rr <[EMAIL PROTECTED]> wrote:
> Thanks Rajesh
>
> But...it doesn't work
> It complains about form0 doesn't have cleaned_data. I guess
>
> form0 = super(MyFormWizard, self).get_form(0, data=data)
>
> only gives you a form with no data?!
I just dpasted something that will hel
Hi Sergio,
I updated my code with your changes, and it still doesn't seem to be
working. I don't have the history Manager in my model.
Is it working for you? Are you using the latest trunk?
Thanks!
Erik
On Aug 19, 12:15 pm, Sérgio Durand <[EMAIL PROTECTED]> wrote:
> Hi people,
>
> Finally i'
On Aug 20, 12:57 pm, rr <[EMAIL PROTECTED]> wrote:
> Thanks Rajesh
>
> But...it doesn't work
> It complains about form0 doesn't have cleaned_data. I guess
>
> form0 = super(MyFormWizard, self).get_form(0, data=data)
>
> only gives you a form with no data?!
Can you dpaste what you've so far?
--
Has anyone customized the admin (specifically with newforms-admin) to
collapse/expand apps? I'd like to keep them out of the way as much as
possible. I'm thinking some javascript that would expand/collapse them
and store the preference in a cookie or the session. Is this a dumb
idea? Has anyone do
On Wed, 2008-08-20 at 12:55 -0700, daonb wrote:
[...]
> While a google group
> is a good solution for the developers and evangelists it's not
> targeted at providing help and support.
Do you have any actual evidence to back that claim up?
Because over the last three years, this group has done
Hi all,
As this hasn't been widely advertised, I thought i'd mention it here.
We will be providing a video conference service from Google Sao Paulo
for anyone interested in going there to watch DjangoCon on both
Saturday 6th September and Sunday 7th September.
Everyone will meet at 11:00 local
Just what it says... Core can't be on the ImageField is survey/
models.py anymore. Remove it, and you'll be fine. If you like, you can
put it on another field in the model, just not an ImageField or
FileField.
--~--~-~--~~~---~--~~
You received this message because
> Renaming issues aside — am I the only one who is bothered by how many
> messages-per-day -users gets vs. noticing "interesting" topics (where
> "interesting" depends on the individual, of course)? django-users has
> become such a catchall that I feel simply overwhelmed, and as I
> stated, I ten
I assume you are using linux. But in windows it's like this
import os
os.environ ['USERPROFILE'].split('\\')[-1]
James
On Wed, Aug 20, 2008 at 9:53 AM, PeteDK <[EMAIL PROTECTED]> wrote:
>
>
>
> On 20 Aug., 17:56, "Emily Rodgers" <[EMAIL PROTECTED]> wrote:
> > > -Original Message-
> > >
On Wed, Aug 20, 2008 at 3:05 PM, Tom Tobin <[EMAIL PROTECTED]> wrote:
> Renaming issues aside — am I the only one who is bothered by how many
> messages-per-day -users gets vs. noticing "interesting" topics (where
> "interesting" depends on the individual, of course)? django-users has
> become su
Running Debian Lenny, I uninstalled Django 0.96-2, installed
Django beta 1, and downloaded Django-survey. The result of running
it is below. Any help appreciated, thanks.
-rex
XXX:~/djcode/django-survey-read-only$ python examples/manage.py runserver
Validating models...
Unhandled exception in th
Sweet, thank you for all the help guys!
I'll go through all this and figure out which best suits my needs.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dj
I upgraded Django to 1.0-beta1 and it all seems to be working now.
On Aug 16, 12:33 pm, efcjoe <[EMAIL PROTECTED]> wrote:
> Hi
> I'm having problems with djangoadmin. Trying to follow tutorial 2
> from the website. The icons next to date fields and the (Show) link on
> collapsed fieldsets arenots
Rajesh Dhawan wrote:
> On Aug 20, 9:49�am, patrickk <[EMAIL PROTECTED]> wrote:
> > how do I provide the translations ... ???
>
> You will have to put the translations for your app names manually (as
> Malcolm confirms above, they won't be automatically extracted for
> you). But once you provide
On Tue, Aug 19, 2008 at 11:16 AM, Tom Tobin <[EMAIL PROTECTED]> wrote:
> As an aside (and perhaps this is a topic for another thread), I really
> don't like that "meta" discussion gets shoved off into -users;
> django-users is *far* too high-traffic, and I don't keep myself
> subscribed to it becau
On Wed, 2008-08-20 at 11:46 -0700, Alfonso wrote:
> Interestingly changing /django/core/handlers.py line 77 from:
>
> request.path_info)
>
> to:
>
> request.path)
>
> Makes everything work again - hmm. No idea why though.
So what you're saying is that if you introduce old bugs back into
Dja
Hello,
I've added a Trackback function to my blog (written in Django).
Does anyone knows a tool (internet site) which allows to send a test
trackback to my blog to test it (incl. auto discovery)?
Thanks,
Florian
--~--~-~--~~~---~--~~
You received this message
Thnx.
Something else, I've looked for, with little/no luck, is a form to
edit information in the database. So that after a user initially
inputs their goal, they can come back at the end of the time period
and enter how many steps they actually took...
Chris
On Aug 20, 8:18 am, Jarek Zgoda <[EM
Interestingly changing /django/core/handlers.py line 77 from:
request.path_info)
to:
request.path)
Makes everything work again - hmm. No idea why though.
Thanks
Allan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
On Tue, Aug 19, 2008 at 11:16 AM, Tom Tobin <[EMAIL PROTECTED]> wrote:
> Let me propose a stopgap: edit the django-users and django-developers
> pages to state, in large bold text, what the purpose of each list is
> (this is "edit welcome message" in Google Groups). Let's see if that
> helps any,
I just upgraded our memcached configuration to span across multiple
servers instead of just on the web server as we were using previously.
Our configuration went from this...
CACHE_BACKEND = 'memcached://127.0.01:11211'
To this...
CACHE_BACKEND = 'memcached://
10.0.0.1:11211;10.0.0.2:11211;10.0
anonymous wrote:
Hola,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
6: ordinal not in range(128)
¿Cómo podría resolverlo?
La versión de django es svn trunk y la de Mysql es la 5.
Tendría que ver tus modelos antes de ayudar con eso.
¿Has probado eso con algo
I don't think its as simple as that. As I said, "no software I have
will recognize them as valid images". This includes GIMP, Eye of
Gnome, etc. All say that it is not a valid image or is corrupted.
Jay
On Aug 20, 12:41 pm, Martin Diers <[EMAIL PROTECTED]> wrote:
> I would suspect that #2 is
Hello,
I'm trying to save user info automatically via admin interface. I
found an example in code.djangoproject.com/wiki/
CookBookNewformsAdminAndUser and tested it out. It doesn't work. I got
the following error:
=
TypeError at /admin/geo_note/post/add/
save_model() got multiple va
Thanks Rajesh
But...it doesn't work
It complains about form0 doesn't have cleaned_data. I guess
form0 = super(MyFormWizard, self).get_form(0, data=data)
only gives you a form with no data?!
On Aug 20, 11:06 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> > Depending onstep1's selectio
On 20 Aug., 17:56, "Emily Rodgers" <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: django-users@googlegroups.com
> > [mailto:[EMAIL PROTECTED] On Behalf Of Steve Holden
> > Sent: 20 August 2008 16:37
> > To: django-users@googlegroups.com
> > Subject: Re: how to locate the OS
Hi Christan,
Thanks for your reply - last version where everything worked was 8255,
to be honest not 100% sure where to track the problem or whether it's
100% related to a svn update but I'm confident that the major change
since last worked.
Allan
On Aug 20, 2:19 pm, Christian Joergensen <[EMAI
I would suspect that #2 is a mime-type problem, which is just an S3
property. Presuming the ImageField translates to a basic href into S3,
the mime-type property of the file would need to be set or else it is
going to come across as a Binary file. Some browsers are ok with this
non-standa
On Wed, Aug 20, 2008 at 9:13 AM, patrickk <[EMAIL PROTECTED]> wrote:
>
> one last question: how do I pass the paramaters from the view to the
> form?
That's where you'll need to override __init__(). Like Brian said, at
this point it's straightforward Python: pass your arguments into
__init__(), s
Ivan Sagalaev wrote:
> fabio natali wrote:
> > For the sake of clarity, my django project is named arteak, the models
> > we are using belong to an app called "management".
>
> Ah! Then there should of course be get_model('management',
> kwargs.pop('model')). I thought 'arteak' was the name of t
one last question: how do I pass the paramaters from the view to the
form?
thanks,
patrick
On Aug 20, 5:56 pm, "Brian Rosner" <[EMAIL PROTECTED]> wrote:
> On Wed, Aug 20, 2008 at 9:34 AM, patrickk <[EMAIL PROTECTED]> wrote:
>
> > ok. I know how to use BaseFormSet, but how do I override
> > _con
With the code from the django-storages you referenced installed
somewhere on PYTHONPATH, its as easy as setting a few things in your
settings.py. You can see the docs for the code at
http://code.larlet.fr/doc/django-s3-storage.html. Put the Required
and Optional (if you want it, obviously) stuff
On Wed, Aug 20, 2008 at 9:34 AM, patrickk <[EMAIL PROTECTED]> wrote:
>
> ok. I know how to use BaseFormSet, but how do I override
> _construct_form resp. how do I pass the parameters. btw, it seems
> quite odd to override _construct_form when usually one has to override
> __init__.
>
You need to
> -Original Message-
> From: django-users@googlegroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of Steve Holden
> Sent: 20 August 2008 16:37
> To: django-users@googlegroups.com
> Subject: Re: how to locate the OS currently logged in user??
>
>
> PeteDK wrote:
> > Hi.
> >
> > I want
thanks. and how do I pass these arguments within the view?
UploadFormSet = formset_factory(form=UploadForm,
formset=BaseUploadFormSet, extra=5, PATH_SERVER, path) ... or ... ???
On Aug 20, 5:52 pm, "Justin Fagnani" <[EMAIL PROTECTED]> wrote:
> On Wed, Aug 20, 2008 at 8:34 AM, patrickk <[EMAIL PR
On Wed, Aug 20, 2008 at 8:34 AM, patrickk <[EMAIL PROTECTED]> wrote:
>
> ok. I know how to use BaseFormSet, but how do I override
> _construct_form resp. how do I pass the parameters. btw, it seems
> quite odd to override _construct_form when usually one has to override
> __init__.
__init_() simp
PeteDK wrote:
> Hi.
>
> I want to retreive the name of the currently logged in user on the OS
> on which my django app lives.
> Is this possible?
>
> The thing is. The app is to be used in a private environment, so all
> the users have to log on to the webserver first(this cant be changed).
> I
ok. I know how to use BaseFormSet, but how do I override
_construct_form resp. how do I pass the parameters. btw, it seems
quite odd to override _construct_form when usually one has to override
__init__.
On Aug 20, 5:21 pm, "Brian Rosner" <[EMAIL PROTECTED]> wrote:
> On Wed, Aug 20, 2008 at 9:10
>
>
> I'm afraid I don't have any magic solutions. The best approach I can
> suggest is to log the SQL that is being executed (either in the
> Postgres query log or by putting in some debug statements into Django
> to output connection.queries). Then narrow down the statement that is
> causing prob
On Wed, Aug 20, 2008 at 9:10 AM, patrickk <[EMAIL PROTECTED]> wrote:
>
> my upload form looks like this:
>
> class UploadForm(forms.Form):
>
>def __init__(self, path_server, path, *args, **kwargs):
>self.path_server = path_server
>self.path = path
>super(UploadForm, sel
fabio natali wrote:
> For the sake of clarity, my django project is named arteak, the models
> we are using belong to an app called "management".
Ah! Then there should of course be get_model('management',
kwargs.pop('model')). I thought 'arteak' was the name of the app. This
is why it returns N
my upload form looks like this:
class UploadForm(forms.Form):
def __init__(self, path_server, path, *args, **kwargs):
self.path_server = path_server
self.path = path
super(UploadForm, self).__init__(*args, **kwargs)
file = forms.FileField(label="File")
use_im
ad777 wrote:
> Hi there,
>
> I am new at django and I was wondering what is the best way of
> redirecting users to their own customized page after they get
> authenticated. I have extended the user model to include a unique
> user id for each user... is it somehow possible to use this?
The user
Hi,
> Depending on step 1's selection, I want to set the queryset of one of
> the fields (a ModelChoiceField)
>
> e.g.
> class StepOneForm(forms.Form):
>channelType =
> forms.ModelChoiceField(queryset=ChannelType.objects.all())
> class StepTwoForm(forms.Form):
>channel = forms.ModelChoice
I have a couple of feeds set up, one for a blog and one for a
podcast. I want to create a combined feed that contains both of them
without having to create the combined feed from scratch. Is there
some way to combine two (or more) feed classes into one?
--~--~-~--~~~-
2008/8/20 Julien Phalip <[EMAIL PROTECTED]>:
>
>> If the view is running a loop - how would you provide a variable to another
>> view (that Ajax is calling) about the situation? Let's say a percentage
>> complete -- I immediately think of a global variable, but am not sure how
>> this works in a
2008/8/20 PeteDK <[EMAIL PROTECTED]>:
> I want to retreive the name of the currently logged in user on the OS
> on which my django app lives.
> Is this possible?
You should realize that there is no direct connection between the user
logged in the webserver and the user connecting via HTTP to your
Dear Ivan, it sounds like we are closer to the solution, still not got
it though.
Ivan Sagalaev wrote:
[...]
> > http://dpaste.com/72639/
>
> Oy! I've found it :-). It has nothing to do with model_view decorator or
> anything that we're talking here about. It's in urls.py, on line 30:
>
>
On Aug 20, 9:49 am, patrickk <[EMAIL PROTECTED]> wrote:
> how do I provide the translations ... ???
You will have to put the translations for your app names manually (as
Malcolm confirms above, they won't be automatically extracted for
you). But once you provide the app name translation, it wil
On Wednesday, 20 August 2008 15:27:24 Julien Phalip wrote:
> You could use the cache by setting a key that the other view can look
> up.
Right, thanks-- I'll go look it up.
\d
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hi there,
I am new at django and I was wondering what is the best way of
redirecting users to their own customized page after they get
authenticated. I have extended the user model to include a unique
user id for each user... is it somehow possible to use this?
Thanks.
--~--~-~--~~
On Wed, 2008-08-20 at 15:53 +0200, Jarek Zgoda wrote:
> Wiadomość napisana w dniu 2008-08-20, o godz. 15:33, przez Rajesh
> Dhawan:
>
> > On Aug 20, 8:43 am, patrickk <[EMAIL PROTECTED]> wrote:
> >> how?
> >>
> >
> > You can see the following "blocktrans" fragment in django/contrib/
> > admin/
On Wed, Aug 20, 2008 at 3:31 AM, anonymous <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> I get the following error:
>
> In [2]: from myapp.models import *
>
> In [3]: Mymodel.objects.all()
> Out[3]:
> ---
> UnicodeDecodeE
Wiadomość napisana w dniu 2008-08-20, o godz. 15:33, przez Rajesh
Dhawan:
> On Aug 20, 8:43 am, patrickk <[EMAIL PROTECTED]> wrote:
>> how?
>>
>
> You can see the following "blocktrans" fragment in django/contrib/
> admin/templates/admin/index.html:
>
>
> {% blocktrans with app.name as name %}
how do I provide the translations ... ???
On Aug 20, 3:33 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> On Aug 20, 8:43 am, patrickk <[EMAIL PROTECTED]> wrote:
>
> > how?
>
> You can see the following "blocktrans" fragment in django/contrib/
> admin/templates/admin/index.html:
>
>
> {% blocktr
...ah, sorry: I was not explicit enough.
I'm looking for the correct way to display one entry block of
"DemoThing"
fields below "MainThing", without any notions of "#1" etc.
And upon saving, Data are stored in both tables.
So that it follows a OneToOne intention.
--~--~-~--~~--
On 20 Aug., 15:14, Christian Joergensen <[EMAIL PROTECTED]> wrote:
> PeteDK wrote:
> > Hi.
>
> > I want to retreive the name of the currently logged in user on the OS
> > on which my django app lives.
> > Is this possible?
>
> You are aware that on most systems, more than one user is allowed to
>
On Aug 20, 8:43 am, patrickk <[EMAIL PROTECTED]> wrote:
> how?
>
You can see the following "blocktrans" fragment in django/contrib/
admin/templates/admin/index.html:
{% blocktrans with app.name as name %}{{ name }}{%
endblocktrans %}
-Rajesh D
--~--~-~--~~~---~--~--
On Wed, 2008-08-20 at 05:55 -0700, laspal wrote:
> hi,
> I am trying to sort my tables depending upon the header.
> Its working fine if my models does have any ForeignKey or
> ManyToManyField.
> but if its does sorting is not working.
"Not working" could mean anything: the codes crashes, it runs
fabio natali wrote:
> That's right! So here comes my current urls.py:
>
> http://dpaste.com/72638/
>
> then the traceback I get at http://localhost:8000/:
>
> http://dpaste.com/72639/
Oy! I've found it :-). It has nothing to do with model_view decorator or
anything that we're talking here abo
Hi!
I use the SVN release and have a newbie problem in the admin area:
I try to display fields for my DemoThing class/model, which I didn't
model
with a OneToOneField, but followed suggestions of a ForeignKey-
approach.
What do I have to change or add so that not only my "MainThing"
gets displ
> If the view is running a loop - how would you provide a variable to another
> view (that Ajax is calling) about the situation? Let's say a percentage
> complete -- I immediately think of a global variable, but am not sure how
> this works in a multi-user web situation.
You could use the cache
Alfonso wrote:
> Upgraded to latest svn trunk and now getting brand new error on every
> page/url path save for homepage. Not entirely sure how to track down
> the fault in configuration etc. Anyone help? Thankyou!
Please specify the exact svn revision.
Also, what revision was the last where y
PeteDK wrote:
> Hi.
>
> I want to retreive the name of the currently logged in user on the OS
> on which my django app lives.
> Is this possible?
You are aware that on most systems, more than one user is allowed to
login concurrently?
[...]
> i have looked into the python standard library, an
1 - 100 of 132 matches
Mail list logo