Hi,
> Some of our more common models are shared throughout our app ecosystem
> and we frequently run into a problem with get_absolute_url/permalink/
> etc of generating required URLs, in particular looking at user A's
> interaction with a model vs user B's that may occur in a completely
> separate
This worked like a charm!! Thanks!!
On Mar 9, 12:47 am, Kenneth Gonsalves wrote:
> On Tuesday 09 Mar 2010 11:01:59 am Duvalfan23 wrote:
>
> > Not that Im aware of. Im using the built in auth methods as of now for
> > login and logout. Im kind of a django newbie. Im not quite sure what
> > you mea
On this machine (MacPro, OS X 10.5.8) I have installed and started
working with Django. I wanted to upgrade to Pyhton 2.6. Installed from
http://www.python.org/download/ (downloaded 2.6.4 Mac Installer Disk
Image). Seems to work properly. Then wanted to use Django again. Can't
seem to connect to th
Hello,
I __think__ you must add the path industtromatic_com in your wsgi
settings file,
> The line
> os.environ['DJANGO_SETTINGS_MODULE'] = 'industromatic_com.settings'
> refers to a dir I made, /home/john/WEBprojects/industromatic_com, that I
> copied the
> contents of mysite into. mysite as i
I've worked through http://docs.djangoproject.com/en/1.1/intro/tutorial01/ to
tutorial04
then read up on WSGI, got that to go with a hello world output.
Then I decided to copy the tutorial to a name of a site I want to test over the
internet -- one with
DNS pointing to its name, industromatic.c
Some of our more common models are shared throughout our app ecosystem
and we frequently run into a problem with get_absolute_url/permalink/
etc of generating required URLs, in particular looking at user A's
interaction with a model vs user B's that may occur in a completely
separate part of the ap
On Wed, Mar 10, 2010 at 1:57 AM, Jesus Mager wrote:
> 2010/3/2 Russell Keith-Magee :
>> On Wed, Mar 3, 2010 at 12:46 AM, Jim N wrote:
>>> Hi,
>
>> The short answer is you can't - at least, not out of the box. This is
>> a feature that has been proposed several times [1] in the past.
>> Django's s
Sounds like a bug. I don't recall seeing one like it reported before, so if
you could open a ticket for it that would be appreciated.
Karen
--
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...@google
Hello,
Try using a CharField instead of IntegerField. This is how I used and
it works for me.
tipo = models.CharField(max_length=1,
choices = IMAGEM_TIPOS_CHOICES,
)
Thanks
On Mar 8, 8:12 am, gustavo wrote:
> Hello folks,
>
> I am h
Hi,
I've read about the custom authentication you can do so you can use
upstream validators for your views. And a snippet that helps do that
is here
http://www.djangosnippets.org/snippets/1723/
But will that work for the admin panels? It doesn't look like it to
me...I have a database of users behi
Hello,
I've created a custom widget to replace the many to many widget found
in the admin. Its working well, but I lose the "add" button when I use
it. I see that the functionality is added by wrapping the widget in
the RelatedFieldWidgetWrapper, but I can't figure out how to implement
it. Essenti
Hi,
I have a model field defined thus:
benefit = models.NullBooleanField()
In django 1.1 and 1.2 pre-alpha, nulls were displayed with a "?" icon
in list view. In the Admin change form, a pop-up menu appeared with 3
options (Unknown, Yes, No). Setting to "Unknown" and saving did not
generate any
I was wondering if there is a way to put multiple querysets into one
paginator. Currently I have my querysets being chained together with
itertools. But i am unable to put the chained querysets into the
paginator. Does any one know how I can combine multiple paginators
into one or multiple queryset
Sorry;
my attempts at interlacing ASCII art in the code did not exactly
aid readability. Here is the code section again, simplified:
--
def InputForm( forms.Form ):
name = forms.CharField( max_length = 100)
Hello,
I am implementing a small system which (simplified) should be like
this:
1. The user enters some information in a form.
2. The form content is validated.
3. The user is redirected to a new page (pure HTML / form ??)
summarizing
the information in the first form, and given the choices:
Thanks for the reference and critique, Tom. Currently this is an
internal API to connect two systems together. The query structure was
requested from one set of developers. I am planning on setting up an
external API for another project and this will be helpful in creating
a standard structure.
On
Although it works in my interactive environment.. it does not work in
my actual script.. ??
On Mar 9, 7:02 pm, Calaganne wrote:
> Hey,
>
> thanx for the reply! No, the bid is *not* ordered randomly, but you
> know what, your solution works anyway! ;) Test this and you'll notice
> that it works..
On 9 Mar 2010, at 19:05 , Romain Gaches wrote:
>
> Le 9 mars 2010 à 18:42, Edgard Matos a écrit :
>
>> Caros,
>>
>> Tenho um object no django e quero pegar todos os objetos daquele mesmo tipo.
>> Sendo que eu não sei qual é o tipo deste objeto em tempo de execução.
>>
>> Alguém sabe como fazer
Le 9 mars 2010 à 18:42, Edgard Matos a écrit :
> Caros,
>
> Tenho um object no django e quero pegar todos os objetos daquele mesmo tipo.
> Sendo que eu não sei qual é o tipo deste objeto em tempo de execução.
>
> Alguém sabe como fazer isso?
> Obrigado!
Hi,
take a shot with this, it should wo
Hey,
thanx for the reply! No, the bid is *not* ordered randomly, but you
know what, your solution works anyway! ;) Test this and you'll notice
that it works.. (still haven't figured out why!):
* bs = BID.objects.all ()
* idx=81; bid=bs[idx];
* bs.order_by ('?').filter (pk__lt=bid.id).count ()
2010/3/2 Russell Keith-Magee :
> On Wed, Mar 3, 2010 at 12:46 AM, Jim N wrote:
>> Hi,
> The short answer is you can't - at least, not out of the box. This is
> a feature that has been proposed several times [1] in the past.
> Django's serializers are primarily designed for use in the testing
> sy
So as per your knowledge can u suggest a proper way of getting data
from a form but not as mentioned in http://www.djangobook.com/en/2.0/chapter07/
that way is too rusty.
Thanks.
On Mar 9, 7:28 pm, rebus_ wrote:
> On 9 March 2010 15:22, MMRUser wrote:
>
>
>
> > The problem I's having is that my
Caros,
Tenho um object no django e quero pegar todos os objetos daquele mesmo tipo.
Sendo que eu não sei qual é o tipo deste objeto em tempo de execução.
Alguém sabe como fazer isso?
Obrigado!
--
Atenciosamente,
Edgard Matos
--
You received this message because you are subscribed to the Goog
On Mar 9, 2010, at 12:19 PM, MMRUser wrote:
Is there no one???
Nobody who wants to do your work for you? Maybe. Especially when you
end your e-mail with "Your valuable corporation [sic] is expected."
Perhaps, if you write a short, easy-to-read e-mail with a very clear
question that can
Ok Daniel!
The model is:
class Imagem(models.Model):
""" Várias Imagens são relativas a um Paciente """
IMAGEM_LATERAL = '1'
IMAGEM_FRONTAL = '2'
IMAGEM_PERFIL = '4'
IMAGEM_TIPOS_CHOICES = (
(IMAGEM_LATERAL, _('Imagem lateral')),
Ok Daniel!
The model is:
class Imagem(models.Model):
""" Várias Imagens são relativas a um Paciente """
IMAGEM_LATERAL = '1'
IMAGEM_FRONTAL = '2'
IMAGEM_PERFIL = '4'
IMAGEM_TIPOS_CHOICES = (
(IMAGEM_LATERAL, _('Imagem lateral')),
Is there no one???
On Mar 9, 8:18 pm, MMRUser wrote:
> Hi,
>
> Recently I'm trying to implement a simple Django application that
> include one server side AJAX validation, it's a simple form input
> field (username). I have used a pre-built in line AJAX validation
> mechanism which uses jQuery. S
Am 08.03.2010 07:44, schrieb Rizwan Mansuri:
I am happy to help you but my experience with django is very much like
starting level. Is that something helps you?
You are welcome ;)
--
Mfg.
Jens Diemer
http://www.jensdiemer.de
--
You received this message because you are subscribed to
On Mon, Mar 8, 2010 at 10:41 PM, Nick wrote:
> I am working on an api that outputs a list of JSON based on certain
> criteria. Currently if someone enters
> http://example.mysite/slideshows/api?id=1
> it returns a JSON serialized output of the slideshow with that ID.
>
> What I would like to do
the session e.g. depends on this key
regards
Hinnack
>reply to message:
>date: 09.03.2010 15:20:38
>from: "rebus_"
>to: django-users@googlegroups.com
>subject: Re: Secret key
>
>On 9 March 2010 15:16, Joan Miller wrote:
>> For what is used the key `SECRET_KEY`?
>>
>> --
>> You received this me
Awesome, thanks. I have been using The Django Book as my sole
documentation, which was quite foolish of me. That gave me exactly
what I needed -- sorry for not remembering to check the actual docs
first!
On Mar 9, 8:19 am, Daniel Roseman wrote:
> On Mar 9, 4:15 pm, Laereom wrote:
>
>
>
>
>
> >
On Mar 8, 4:36 pm, gustavo wrote:
> Sure Daniel,
>
> I have the admin showing only the "tipo"s label, not the choices!
>
What are the choices? Honestly, it would be easier if you gave more
than a single line of code here.
--
DR.
--
You received this message because you are subscribed to the Goo
On Mar 9, 4:15 pm, Laereom wrote:
> I have a model, Response, which has a ManyToMany field with the model
> Question named 'questionid'. When I create an instance of response
> like this:
> response = Response(questionid=question,
> blah,
> blah
> )
>
> I receive the following error:
> TypeError
I have a model, Response, which has a ManyToMany field with the model
Question named 'questionid'. When I create an instance of response
like this:
response = Response(questionid=question,
blah,
blah
)
I receive the following error:
TypeError at /answer
'questionid' is an invalid keyword argument
Hi
I am quite new in django. Could you explain me how django process
incoming request?
I have coded in php before, and there every request was like script
starts again (read config file, connect db, etc). in django it seems
different ;) and I do not understand it well yet. I will thankfull for
inf
Hi,
I am struck with this strange error message:
AttributeError at /products/
'function' object has no attribute 'objects'
Request Method:GET
Request URL:http://127.0.0.1:8000/products/
Exception Type:AttributeError
Exception Value:
'function' object has no attribute 'objects'
Exception Locat
On Mar 9, 2010, at 10:37 AM, James Bennett wrote:
On Tue, Mar 9, 2010 at 8:47 AM, Shawn Milochik
wrote:
I wonder if this is something that might end up in Django as a
built-in
feature at some point. It comes up regularly on this list.
Were I to sit here all morning doing nothing but typi
On Tue, Mar 9, 2010 at 8:47 AM, Shawn Milochik wrote:
> I wonder if this is something that might end up in Django as a built-in
> feature at some point. It comes up regularly on this list.
Were I to sit here all morning doing nothing but typing, I wouldn't be
able to say "no" enough times to that
On 9 March 2010 15:16, Joan Miller wrote:
> For what is used the key `SECRET_KEY`?
>
> --
> 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, sen
For what is used the key `SECRET_KEY`?
--
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.
Something is broken in your code. If you set DEBUG = True, you'll find
out what. But since it's False, it is hiding that information for
security reasons. It tries to display an error page to the browser,
and it expects a template to exist called 500.html to show to your
poor, out-of-luck u
I wonder if this is something that might end up in Django as a built-
in feature at some point. It comes up regularly on this list.
Here's what I used. It's a hack, but it works.
http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
Shawn
--
You received this message because you are
Hi,
I'm new to using Django and have come across some redundancy in my
implementation that I would like to irradicate.
I have defined several models in the models.py file as normal. I would
like to register all of my models to be available via the admin
interface. Currently I need to register mod
Dear all,
Installed the Django framework in my local machine.
Am able to create a models and inserted values into database.
When I was trying to show the admin page it showed the following
error.
Traceback (most recent call last):
File "/home/thangappan/Non-Technical/Pyt
Thank you very much. trouble has been solved.
2010/3/9 rebus_
> On 9 March 2010 15:22, Forrest Liu wrote:
> > Hi,
> > I am struck with this strange error message:
> > AttributeError at /products/
> >
> > 'function' object has no attribute 'objects'
> >
> > Request Method:GET
> > Request URL:htt
The problem I's having is that my HTML form depends upon lot of
external resources like javascript validation libraries and lots of
css on fields (and some may differ from each other), and I think that
I don't need to use re-usable templates because I just want to design
a one simple form so there'
How to get current session user in models.py?
I want to use a custom 'Manager' on a certain Model, which contains a
'user' field.
In this customized Manager, I want to filter records according to
whether the 'user' field equals to the current session username.
I know I can get 'user' from 'reques
Hi all,
Those of you that have been paying attention to the Django release
roadmap [1] will have noticed that the original estimated release date
for Django 1.2 final has passed, but we haven't actually made a final
release.
Although Django aims to follow a date-based release cycle, we won't
make
Hi All,
I have a requirement, which I am trying to come up with a proof of
concept using Django.
The requirement is:
I upload a zip file containing -
archive.zip:
/db/scenario1.db
/db/scenario2.db
/db/scenario3.db
/db/scenario4.db
On the server unpack the z
Hi,
Recently I'm trying to implement a simple Django application that
include one server side AJAX validation, it's a simple form input
field (username). I have used a pre-built in line AJAX validation
mechanism which uses jQuery. So the code goes like this
HTML snippet
Username:
The serve
On 9 March 2010 13:30, knight wrote:
> I have the following models: http://slexy.org/view/s20T8yOiKZ.
> When I try to click add button for worlds in admin page it shows me
> the following error:
> has more than 1 ForeignKey
> to .
> I think it's something to do with inline.
> What can it be?
>
>
I have the following models: http://slexy.org/view/s20T8yOiKZ.
When I try to click add button for worlds in admin page it shows me
the following error:
has more than 1 ForeignKey
to .
I think it's something to do with inline.
What can it be?
Regards, Arshavski Alexander.
--
You received this me
On 9 March 2010 15:22, Forrest Liu wrote:
> Hi,
> I am struck with this strange error message:
> AttributeError at /products/
>
> 'function' object has no attribute 'objects'
>
> Request Method:GET
> Request URL:http://127.0.0.1:8000/products/
> Exception Type:AttributeError
> Exception Value:
>
>
On 9 Mar 2010, at 15:30 , serek wrote:
>
> Hi
>
> I am quite new in django. Could you explain me how django process
> incoming request?
> I have coded in php before, and there every request was like script
> starts again (read config file, connect db, etc). in django it seems
> different ;) and I
Anyone please!?
On 8 mar, 13:36, gustavo wrote:
> Sure Daniel,
>
> I have the admin showing only the "tipo"s label, not the choices!
>
> On 8 mar, 13:23, Daniel Roseman wrote:
>
> > On Mar 8, 4:12 pm, gustavo wrote:
>
> > > Hello folks,
>
> > > I am having a hard time trying to use a radio butt
On 9 March 2010 15:22, MMRUser wrote:
> The problem I's having is that my HTML form depends upon lot of
> external resources like javascript validation libraries and lots of
> css on fields (and some may differ from each other), and I think that
> I don't need to use re-usable templates because I
On 9 March 2010 10:31, andrew_scfc wrote:
> Hi,
>
> I'm new to using Django and have come across some redundancy in my
> implementation that I would like to irradicate.
>
> I have defined several models in the models.py file as normal. I would
> like to register all of my models to be available vi
On 9 March 2010 05:54, MMRUser wrote:
> Thanks another doubt,what about the css mappings class="field text
> medium" do they also need to include in the class definition in
> Django.
>
> On Mar 9, 9:21 am, rebus_ wrote:
>> On 9 March 2010 05:04, MMRUser wrote:
>>
>>
>>
>> > I have an pre-built H
OK Thanks! That explains a lot.
Wim
On Mar 8, 2:54 pm, derek wrote:
> On Mar 8, 2:46 pm, Wim Feijen wrote:
>
>
>
>
>
> > Hello,
>
> > In my admin interface, the data isn't ordered as expected. What I get
> > is:
> > Provincie/Land Type
> > Limburg Provincie
> > Groningen Provincie
> > Ut
Hi,
I have a class with an image field.
Every time the image is changed, I need to resize the image to several formats.
At the moment, I do that every time the class which contains the image is saved.
However, I'd like to improve that a bit and only resize whenever the image has
changed.
Is ther
I figured it out finally.
For anybody who is interested. I have this setup for showing multiple
tweets:
settings.py:
from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS
TEMPLATE_CONTEXT_PROCESSORS = TEMPLATE_CONTEXT_PROCESSORS + (
"wieskamp.verkoop.context_processors.latest_t
61 matches
Mail list logo