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
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
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
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
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
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
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 =
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
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)
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
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 =
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,
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
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
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
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
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
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
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
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
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
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
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'.
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
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?
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 = []
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,
>
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
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
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
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
Thanks Malcolm!
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
I found a workaround, maybe a fix?
In regex_helper's get_quantifier function, starting at line #244:
while ch != '}':
...
quant.append(ch)
I tested this and it looks like quant gets appended every time, even
when ch == '}'. So I added a simple: "if ch != '}'" before
"quant.append(ch)",
On Mon, 2008-09-01 at 15:59 -0700, Malcolm Tredinnick wrote:
>
> On Mon, 2008-09-01 at 15:55 -0700, Dave Lowe wrote:
> > I wish I could find that. I've already been looking for anything like
> > that and keep coming up empty. None of the URL variables I'm using
> > include '}'.
>
> Not the
On Mon, 2008-09-01 at 15:55 -0700, Dave Lowe wrote:
> I wish I could find that. I've already been looking for anything like
> that and keep coming up empty. None of the URL variables I'm using
> include '}'.
Not the variables. The regular-expression patterns. In one of your
urls.py files.
I wish I could find that. I've already been looking for anything like
that and keep coming up empty. None of the URL variables I'm using
include '}'.
If it helps, here's the original traceback.
File "/Library/Python/2.5/site-packages/django/template/debug.py",
line 71, in render_node
result
On Tue, Sep 2, 2008 at 12:37 AM, Jon Loyens <[EMAIL PROTECTED]> wrote:
>
> Hi guys,
>
> I have a small project coming up that I think having some sort of
> schema evolution facilities will be handy on. I was wondering what
> the current and best project choices for schema evolution are? I was
>
On Mon, 2008-09-01 at 15:16 -0700, Dave Lowe wrote:
> I saw the note about revision 8760 introducing changes to reverse and
> the url template tag, specifically that passing extra parameters won't
> work. I haven't been able to find anywhere in my code where extra
> parameters are being passed.
I saw the note about revision 8760 introducing changes to reverse and
the url template tag, specifically that passing extra parameters won't
work. I haven't been able to find anywhere in my code where extra
parameters are being passed. However, after I update to 8760, I start
getting the
On Mon, Sep 1, 2008 at 1:23 PM, marsii <[EMAIL PROTECTED]> wrote:
>
> Hi!
> I have a problem with the 404 page.
>
> First I get:
> "You're seeing this error because you have DEBUG = True in your Django
> settings file. Change that to False, and Django will display a
> standard 404 page. "
>
> and
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
" Rémi "
I get on production only
'ascii' codec can't encode
Thanks for your very fast answer ! But ... see inline
2008/9/1 Malcolm Tredinnick <[EMAIL PROTECTED]>:
>
>
> On Mon, 2008-09-01 at 22:48 +0200, Guillaume Lederrey wrote:
>> Hello !
>>
>> I have an app that has a "utils.py" module. I have written quite a few
>> doctests inline. Now my problem is
On Mon, 2008-09-01 at 22:48 +0200, Guillaume Lederrey wrote:
> Hello !
>
> I have an app that has a "utils.py" module. I have written quite a few
> doctests inline. Now my problem is to actually run those tests.
> Reading the documentation, I get the feeling that I should be able to
> call them
Hi,
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 suggest using overflow:auto on .submit-row class so
Hello !
I have an app that has a "utils.py" module. I have written quite a few
doctests inline. Now my problem is to actually run those tests.
Reading the documentation, I get the feeling that I should be able to
call them from the tests.py file, but I cant find an example. I have
seen a few
Well, as it turns out, my URLConf looked something like:
urlpatterns = patterns('devsite.djpages.views',
(r'(?P\w+)/$', 'display_page', 'dj_pages_display'),
(r'$', 'display_page', 'dj_pages_default'),
)
The default value for the second one was processed by putting
On Sep 1, 4:02 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-09-01 at 11:39 -0700, Mathieu Leplatre wrote:
> > Hi all,
>
> > According to the documentation, email sending is done through smtp.
> > Is there a way to use sendmail or postfix instead ?
>
> Yes, start up sendmail or
On Mon, 2008-09-01 at 15:10 -0400, Jay Parlar wrote:
> On Mon, Sep 1, 2008 at 2:48 PM, Vance Dubberly <[EMAIL PROTECTED]> wrote:
> >
> > So I'm finding there are multiple places where I'm needing to iterate
> > over the properties of a Model and I'm absolutely certain it's got to
> > be
On Mon, Sep 1, 2008 at 2:48 PM, Vance Dubberly <[EMAIL PROTECTED]> wrote:
>
> So I'm finding there are multiple places where I'm needing to iterate
> over the properties of a Model and I'm absolutely certain it's got to
> be insanely easy to get a dictionary from a model but for the life of
> me
On the sides it should say the stats!
On Mon, Sep 1, 2008 at 6:09 AM, Will Rocisky <[EMAIL PROTECTED]> wrote:
>
> yeah, I am visiting that group :)
>
> On Sep 1, 6:55 pm, "Artis Caune" <[EMAIL PROTECTED]> wrote:
> > On Mon, Sep 1, 2008 at 2:54 PM, Will Rocisky <[EMAIL PROTECTED]> wrote:
> >
> >
On Mon, 2008-09-01 at 11:39 -0700, Mathieu Leplatre wrote:
> Hi all,
>
> According to the documentation, email sending is done through smtp.
> Is there a way to use sendmail or postfix instead ?
Yes, start up sendmail or postfix to listen on a port. :-)
Presumably, you mean sending by calling
So I'm finding there are multiple places where I'm needing to iterate
over the properties of a Model and I'm absolutely certain it's got to
be insanely easy to get a dictionary from a model but for the life of
me I can't figure it out, and I can't find any documentation on the
matter.
basically
Hi all,
According to the documentation, email sending is done through smtp.
Is there a way to use sendmail or postfix instead ?
Thank you.
Mathieu.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
I'm in the process of moving an existing app over to python and
Django, and ran into one snag I haven't been able to find any comments
on.
Basically, I have objects that describe themselves as an SQL-style
pattern (they represent small chunks of possible patterns from DNA, so
things like
2008/8/30 James Bennett <[EMAIL PROTECTED]>:
>
> On Fri, Aug 29, 2008 at 5:58 PM, Guillaume Lederrey
> <[EMAIL PROTECTED]> wrote:
>> After updating to the latest trunk, I get a couple of errors when I
>> have field that define "core=True". After digging into the code, I
>> find changeset 8616
Hey Malcolm,
Thanks a ton, that explains my utter frustration!
So, there would be no way to control settings such as TIME_ZONE or
other Django specific settings then? How about setting non-Django
settings?
I have a few settings I'd like to control that are our custom settings
like
On Mon, 2008-09-01 at 08:35 -0700, Rodrigo Culagovski wrote:
[...]
> So, I guess the problem is using a model instance as a dictionary key.
> What's weird is the development/production server discrepancy.
> Development is running 0.97, production 0.96, which I guess might
> account for the
On Sep 1, 5:39 pm, "Weber Sites" <[EMAIL PROTECTED]> wrote:
> How do I know which ver?
What does it say when you start up the development server?
Or in the shell, you can do
>>> import django
>>> django.get_version()
u'1.0-alpha-SVN-8210'
To be honest, I'm not sure you actually want the
On Mon, 2008-09-01 at 10:39 -0700, Leaf wrote:
> All the info is at http://dpaste.com/75250/. I really have no idea
> what this error is trying to tell me. Can anyone explain what it might
> be?
It's an internal Python error that is raised when you try to update a
dictionary with bad data. What
If you just want to have a clean working solution, have a look at
django-photologue (http://code.google.com/p/django-photologue/). It is
amazing, and really easy to integrate well. Also have a look at
sorl-thumbnail (http://code.google.com/p/sorl-thumbnail/).
If you want to write your own code
All the info is at http://dpaste.com/75250/. I really have no idea
what this error is trying to tell me. Can anyone explain what it might
be?
Regards,
Leaf
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
Thanks,
allready got it to work.
2008/8/31 julianb <[EMAIL PROTECTED]>:
>
> On Aug 31, 6:45 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>> Can someone please point me in the right direction
>
> I got problems after the refactoring, too:
>
>
Hi!
I have a problem with the 404 page.
First I get:
"You're seeing this error because you have DEBUG = True in your Django
settings file. Change that to False, and Django will display a
standard 404 page. "
and when I change DEBUG to False I get:
Traceback (most recent call last):
File
Hi all of you!
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.
So, say my app is called virtual_shop, then I would need to get Buyer,
Product, Transaction, ...
Is there a way to accomplish this via generic views? Is
On Mon, 2008-09-01 at 04:41 -0700, Nick Day wrote:
> No, sorry, my mistake - I hadn't had enough coffee when I posted
> this...
>
> I actually wanted to change the app name in the admin interface. My
> app is called "en" and I would like this to appear as "English Site"
> within the admin
On Mon, 2008-09-01 at 00:33 -0700, patrickk wrote:
> http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
>
> using threadlocals has been considered a "hack" recently by one of the
> main django-developers (james bennett, see
>
Thanks for the info.
2008/8/31 Ramiro Morales <[EMAIL PROTECTED]>:
>
> On Sun, Aug 31, 2008 at 2:09 PM, Ramiro Morales <[EMAIL PROTECTED]> wrote:
>>
>> This is a bug and has been reported as ticket |1] #7027, you can track
>> the advance of the issue there.
>>
>
> This is fixed as of revision
On Mon, 2008-09-01 at 08:37 -0700, Paolo Corti wrote:
> Hi all
>
> I am a beginner using Django from the trunk and Postgres 8.2
>
> I have this issue with utf8, you can replicate it this way (it is
> something similiar to this with MySql i guess:
>
How do I know which ver?
-Original Message-
From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Daniel Roseman
Sent: יום ב 01 ספטמבר 2008 17:48
To: Django users
Subject: Re: EnvironmentError: Could not import settings
On Sep 1, 3:10 pm, "Weber Sites" <[EMAIL
Hi guys,
I have a small project coming up that I think having some sort of
schema evolution facilities will be handy on. I was wondering what
the current and best project choices for schema evolution are? I was
leaning towards django-evolution until I saw a post from Russell
saying that he
Hi all
I am a beginner using Django from the trunk and Postgres 8.2
I have this issue with utf8, you can replicate it this way (it is
something similiar to this with MySql i guess:
hello Django users
I am a beginner using Django from the trunk and Postgres 8.2
I have this issue with utf8, you can replicate it this way (it is
something similiar to this with MySql i guess:
I'm working with admin and a model as the following:
class Publisher(models.Model):
name = models.CharField(maxlength=30)
[snip]
class Book(models.Model):
title = models.CharField(maxlength=100)
publisher = models.ForeignKey(Publisher, blank=True)
[snip]
I can add a
I have a weird dictionary key issue: I have an 'Article' model, with
textfields for Year and Country and foreignkeys for Magazine and
Author.
I generate a frequency list for each criteria (e.g.: Year=2005) which
I use to keep the count. To do this, I subclassed dictionary like so:
class
>> I've been trying to figure out how to use a custom subclased
>> RequestContext[1] object in my generic views. Looking at the
>> code of django/views/generic/*.py it looks like this class is
>> hard-coded in each of the views.
>>
>> Ideally, I'd be able to set something in the settings.py to
Thanks! :)
Nick
On Sep 1, 3:18 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Sep 1, 2:53 pm, Nick Day <[EMAIL PROTECTED]> wrote:
>
> > Would somebody be able to provide a simple example of using get_form()
> > within the ModelAdmin to retrieve the currently logged-in user?
>
> > Thanks in
On Sep 1, 3:10 pm, "Weber Sites" <[EMAIL PROTECTED]> wrote:
> Thanks, looks like we are making progress :)
>
> Now I get
>
> Page not found (404)
> Request Method: GET
> Request URL:http://django.weberdev.com:82/mysite/
>
> Using the URLconf defined in mysite.urls, Django tried these URL
Thanks for your help - I used list_display and it works fine.
Cheers,
Nick
On Sep 1, 2:55 pm, "Valts Mazurs" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I guess that you want to have more details in admin list view.
> You can use list_display configuration attribute in admin class for your
>
I'll write an example of the problem. All my urls are prepared
following the best SEO rules, so in many places I have urls like:
(r'^(.*)-f(?P\d+)\.html$','view_photo')
this would make the url:
my-photo-f2.html
I get the url using:
reverse('app.views.view_photo', args=[slugify(photo.title),],
David,
I think this is still not fixed. I am getting the same errors
R
On Aug 25, 2:02 pm, David Larlet <[EMAIL PROTECTED]> wrote:
> Le 20 août 08 à 17:56, shadfc a écrit :
>
>
>
>
>
> > With the code from the django-storages you referenced installed
> > somewhere on PYTHONPATH, its as easy as
is there anybody out there who could answer this question?
On 29 Aug., 07:59, Brot <[EMAIL PROTECTED]> wrote:
> Hello,
>
> At the moment I am reading the "Practical Django Projects" - Book
> written by James Bennett.
> On page 120 there is a admonition about using Default Managers. Above
> this
On Fri, Aug 29, 2008 at 7:59 AM, Brot <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> At the moment I am reading the "Practical Django Projects" - Book
> written by James Bennett.
> On page 120 there is a admonition about using Default Managers. Above
> this paragraph there is the explanation about the
On Sep 1, 2:53 pm, Nick Day <[EMAIL PROTECTED]> wrote:
> Would somebody be able to provide a simple example of using get_form()
> within the ModelAdmin to retrieve the currently logged-in user?
>
> Thanks in advance,
> Nick
>
Not difficult:
class MyAdmin(admin.ModelAdmin):
def
Hi Tim,
> I've been trying to figure out how to use a custom subclased
> RequestContext[1] object in my generic views. Looking at the
> code of django/views/generic/*.py it looks like this class is
> hard-coded in each of the views.
>
>
> Ideally, I'd be able to set something in the settings.py
Thanks, looks like we are making progress :)
Now I get
Page not found (404)
Request Method: GET
Request URL: http://django.weberdev.com:82/mysite/
Using the URLconf defined in mysite.urls, Django tried these URL patterns,
in this order:
^admin/
The current URL, /mysite/, didn't match any
On Sep 1, 9:57 am, "Valts Mazurs" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> So, which exact line raises the error?
>
> Valts.
very very strange seems to be working beautifully now. Thanks for
your help!
--~--~-~--~~~---~--~~
You received this message because
Hello,
So, which exact line raises the error?
Valts.
On Mon, Sep 1, 2008 at 4:52 PM, Bobby Roberts <[EMAIL PROTECTED]> wrote:
>
> On Sep 1, 9:47 am, "Valts Mazurs" <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > "selItems" is not the same as "selitems". Probably you have mixed the
> name
> > of
Hello,
I guess that you want to have more details in admin list view.
You can use list_display configuration attribute in admin class for your
model.
<< models.py >>
class MyModel(models.Model):
short_name = models.CharField(max_length = 20)
full_name = models.CharField(max_length = 100)
Would somebody be able to provide a simple example of using get_form()
within the ModelAdmin to retrieve the currently logged-in user?
Thanks in advance,
Nick
On Aug 26, 10:16 am, patrickk <[EMAIL PROTECTED]> wrote:
> can someone provide an example for this?
>
> moreover, how is it possible to
On Sep 1, 9:47 am, "Valts Mazurs" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> "selItems" is not the same as "selitems". Probably you have mixed the name
> of the field that you are looking for in the forst row.
the variable name is selltems (with a capital i)
Hi,
I have a model with a __unicode__ method as follows:
def __unicode__(self):
return self.short_name
However, if this is being called from within the admin site, I would
like it to return something different e.g:
def __unicode__(self):
return self.full_name
This is so I can allow
Hello,
"selItems" is not the same as "selitems". Probably you have mixed the name
of the field that you are looking for in the forst row.
Valts.
On Mon, Sep 1, 2008 at 4:44 PM, Bobby Roberts <[EMAIL PROTECTED]> wrote:
>
>
> On Sep 1, 9:34 am, "Valts Mazurs" <[EMAIL PROTECTED]> wrote:
> >
On Sep 1, 9:34 am, "Valts Mazurs" <[EMAIL PROTECTED]> wrote:
> yourList = ['1','2','3','4']
> stringForQuery = ','.join(yourList)
>
> Regards,
> Valts.
Thanks for the quick reply. here's what I have:
selchecks=ctx.request.field_value("selItems")
myselchecks=','.join(selchecks)
assert False,
Are you sure the data will be retrieved twice ? I thought those
queryset definitions were lazy, so they are only executed when the
widgets are rendered.
Hmm, I'll try that out some time to check.
Koen
On 1 sep, 14:18, patrickk <[EMAIL PROTECTED]> wrote:
> that seems to be possible. on the other
yourList = ['1','2','3','4']
stringForQuery = ','.join(yourList)
Regards,
Valts.
On Mon, Sep 1, 2008 at 4:30 PM, Bobby Roberts <[EMAIL PROTECTED]> wrote:
>
> Hi all.
>
>
> I have a simple list such as:
> ['1','2','3','4']
>
> I need to convert this to a string such as:
> 1,2,3,4
>
> so that I
Hi all.
I have a simple list such as:
['1','2','3','4']
I need to convert this to a string such as:
1,2,3,4
so that I can use that in a sql function.
any help is appreciated...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
zapped django from site-packeges, updated to 8797 but still have this
error. Running the django/test over a fresh checkout got a lot of
fails on comments contrib app.
es
ERROR: testRenderCommentFormFromLiteral
(regressiontests.comment_tests.tests.templatetag_tests.CommentTemplateTagTests)
I'm writing a "Pages" app, and I'm wondering - would it be possible to
load template tags out of strings? For example, the user wants a list
of all pages in a specific category for one of their sideboxes, so
they type
{% category-list pie %} (which would be a custom tag I'd write)
Would there
Hello,
i just had the following problem and am not sure whether this is the
way its wants to be:
I used {% get_comment_form for foo as form %} to build my own custom
form. The Form is very simple because only logged in user can access
the page where one would be able to comment. Which is why i
1 - 100 of 134 matches
Mail list logo