If your selectbox are corresponding to foreignkey in yours models, it
coult be very simple. It could be a sucession of urls , generic views
and simple templates.
Other thing: there is a lot of jquery plugins that don't need Ajax to
work. Lot of them could use elements already in the DOM. Fo
Hi all,
just wonder if anyone successfully integrated Q-ImageUploader Pro to
Django projects ? They don't provide any Django/Python scripts out of
the box.
Thanks,
Jury.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
Hi,
I'm basically trying to implement a series of chained select boxes,
i.e. If you select a vehicle = car, then it'll popup another select
box of brands. Select Honda and then it'll pop up another select box
of prices, for example.
The thing is, these select boxes should be populated dynamical
On Thu, Apr 1, 2010 at 10:54 PM, Nick Arnett wrote:
> And now I'll get another one.
>
>
I'm hoping it's fixed now. We've been working with dreamhost support to
identify the problem ID. It's not so simple as a subscriber with a dreamhost
ID but rather (I'm guessing) involves some forwarding that i
On Wed, Mar 31, 2010 at 8:13 AM, Wiiboy wrote:
> Hi guys,
> I've gotten two emails from "Mail Delivery Subsystem
> " with the subject "Your message was NOT
> received by django-us...@googlegroups.com!".
> The body is below. Anyone know why I'm getting these? Is anyone else
> getting them? I ha
Test for the dreamhost bounce problem -- sorry for the noise.
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...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+
Hey, this is a pretty basic schema question, but I'm wondering how to best
implement it in Django.
I have an app that collects user data from a few different question types:
multiple choice questions, true/false questions, numerical questions, etc.
I'll have a bunch of queries that aggregate all a
grr @ google groups for not showing me that this had already been
answered...
On Apr 2, 10:04 am, bob84123 wrote:
> You probably want to check out
> select_related:http://docs.djangoproject.com/en/dev/ref/models/querysets/#id4
>
> On Apr 1, 7:00 am, Federico Capoano wrote:
>
>
>
> > Hello to al
You probably want to check out select_related:
http://docs.djangoproject.com/en/dev/ref/models/querysets/#id4
On Apr 1, 7:00 am, Federico Capoano wrote:
> Hello to all,
>
> has been a while i've been wondering how to optimize Django's queries
> to the database, for example by setting it to use JO
The standard way to extend user is through the user profile.
The following thread talked about showing user profile fields in the
Auth User admin form.
http://groups.google.com/group/django-users/browse_thread/thread/2af584b66b8a38a3
This should be doable with the model manager, but you will h
Thanks but still no luck, it imports fine as expected.
Also tried splitting it out to a separate models file but it failed to even
pick that.
Any other ideas?
On 1 April 2010 08:35, Kenneth Gonsalves wrote:
> On Thursday 01 Apr 2010 1:00:00 pm Wesley Childs wrote:
> > I removed the sqlite db
On Apr 1, 2010, at 7:35 AM, Daniel Hilton wrote:
> I'm researching the deployment of a new internal app and the ops team
> have asked me what type of server the app requires. What I'm looking
> for is some advice / guidance on how best to make
> use of multi cores in a single machine deployment.
Thanks Nuno,
This is what finally worked:
if request.GET['is_published'] == '1':
# questions that are in the past
filters['asking__question_published_date__lt'] =
datetime.datetime.now()
else:
# questions from the FUTURE!
filters['as
Hi,
I got this one worked out. I had to clean up my urls.py. I had some
patterns there that I had tried out earlier that didn't work. I
thought they wouldn't do any harm if I left them there. However, it
seems like they kept the HttpResponseRedirect function from working. I
deleted the patterns and
I think the form I sent, with ModelChoiceField, will validate with the
returned values without any further code. Or am I missing something
obvious?
On Thu, Apr 1, 2010 at 6:49 PM, phoebebright wrote:
> That's one option, the problem is changing the course value returned
> from the form into a co
On Apr 1, 1:51 pm, Nick Arnett wrote:
> On Thu, Apr 1, 2010 at 10:34 AM, Chris Curvey wrote:
>
> > class FoobarForm(ModelForm):
> > foo = forms.FloatField(label = '$')
> > id = forms.HiddenField()
>
> If you're using newforms, there's no such thing as HiddenField.
>
> Perhaps you want this:
>
How about just accessing the "through" models attributes using user__ :
filters['user__question_published_date']
see
http://docs.djangoproject.com/en/dev/topics/db/models/#extra-fields-on-many-to-many-relationships
Hht,
Nuno
On Thu, Apr 1, 2010 at 3:09 PM, Jim N wrote:
> Hello Djanglers,
>
>
On Thu, Apr 1, 2010 at 10:34 AM, Chris Curvey wrote:
>
> class FoobarForm(ModelForm):
> foo = forms.FloatField(label = '$')
> id = forms.HiddenField()
If you're using newforms, there's no such thing as HiddenField.
Perhaps you want this:
id = forms.IntegerField(widget = forms.HiddenInput)
That's one option, the problem is changing the course value returned
from the form into a course object so that the form will validate.
This turned out to be a surprising amount of trouble (because you have
to do it before validation), hence reason for doing simpler work
around.
On Apr 1, 2:08 pm,
this has got to be FAQ, but I can't find it for the life of me.
I have an ordinary Django model class, which has been automatically
been given a field called "id". Great. Now I want to use this field
as a hidden value in a ModelForm, but whenever I add "id" to the list
of fields in the form, I g
Thanks for your kind reply!
Yes you are right I running two scripts.
I got your point and you are right but my problem is to savde string
which is coming from client script. How I can do this?
here is my code:
client.py
client.service.is_valid_user('121ABC',2)
server.py
def get_user(
On 1 avr, 16:12, sim wrote:
> Hello,
> I am new to Python/Django and working on web services.
> I have two files client and server both running on different ports
I assume you mean "two scripts" ?
> and
> working as client server. Problem is this: When I send a string say
> '121ABC' from client
I run a rss feed app on my computer with django 0.96.
This has worked out well for several months. Now I get an error when I
try to call the update view function. This function is supposed to
take me back to a html-page with this line :
return HttpResponseRedirect(request.META.get('HTTP_REFERE
Hi Mark,
Interesting idea for a project. My suggestion is to make your project
public on bitbucket and post a wishlist right on the front page. I've
found most developers will send a patch before they will take on a
whole app.
My other suggestion is to work from the inside out. Focus on a
notebui
Never mind, alraidy fixed it.
Was not aware that the "initial" wanted a dictionary, not a resultset
now doing:
dict = {}
for arr in request.arrondissement.all():
dict[arr.id] = True
form = SearchForm({'arrondissement': dict,})
On 1 apr, 16:14, Sander wrote:
> Hi guys,
>
> Thi
Hi guys,
This might be a very simple question but it's really driving me crazy
for not working.
I'm trying to set the initial selected values of a
ModelMultipleChoiceField like this:
class MyForm(forms.Form):
arrondissement =
forms.ModelMultipleChoiceField(queryset=Arrondissement.objects.all
Hello,
I am new to Python/Django and working on web services.
I have two files client and server both running on different ports and
working as client server. Problem is this: When I send a string say
'121ABC' from client as parameter to server file, it catch perfectly
but when I assign to any veri
Hello Djanglers,
I am using a named many-to-many table ("Asking") to join "Questions"
to "Users". Asking has some fields I'd like to filter against.
I now use a dictionary called filters:
filters = {}
if 'question' in request.GET:
filters['text__icontains'] = request.GET['qu
> * select_related
> * only
> * extra
You also might be interested in "anotate" and "aggregate"
http://docs.djangoproject.com/en/dev/topics/db/aggregation/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dja
What about:
class CourseBook(ModelForm):
course = ModelChoiceField(queryset=Course.objects.all(),
widget=HiddenInput())
class Meta:
model = CourseBooking
and in your view:
form = CourseBook(initial = {'course': course.pk})
Nuno
On Wed, Mar 31, 2010 at 8:06 PM, phoebebright wrot
What about this solution to generate static files?
http://superjared.com/projects/static-generator/
On Apr 1, 12:49 am, Rolando Espinoza La Fuente
wrote:
> On Wed, Mar 31, 2010 at 5:22 PM, Federico Capoano
>
> wrote:
> > Thanks,
>
> > how many things i've learnt today, to optimize the number
You could setup property on your model that would return "previous"
and "next" values in form you would like.
http://www.djangoproject.com/documentation/models/properties/
On Apr 1, 12:45 am, x13 wrote:
> Hello,
>
> I'm trying to figure out a simple way to get a known record from a
> database but
Hello,
I am writing website and i`d like to implement profile managment. Basic thing
would be to edit some of user details by themself, like first and last name
etc. Now, i had to extend User model to add my own stuff, and email address.
I am having troubles with displaying form. Example will de
I'm researching the deployment of a new internal app and the ops team
have asked me what type of server the app requires. What I'm looking
for is some advice / guidance on how best to make
use of multi cores in a single machine deployment.
We are currently running mod_wsgi, postgresql on a single
Very cool, if the database won't be hit often and I manage to use the
new template caching functionality added to Django 1.2 the result will
be really performant.
Thank you very much, I save these info on caching for future
reference.
On Apr 1, 12:49 am, Rolando Espinoza La Fuente
wrote:
> On
The docs say about Field.to_python():
"""
As a general rule, the method should deal gracefully with any of the
following arguments:
* An instance of the correct type (e.g., Hand in our ongoing
example).
* A string (e.g., from a deserializer).
* Whatever the database returns for the co
On Mar 31, 9:42 pm, Asim Yuksel wrote:
> The people and publication are not related so I cant use manytomany
Can you post the schema of this "bridge" table you keep talking about?
Because it sounds _exactly_ like a ManyToMany
Peter
--
You received this message because you are subscribed to the
On Apr 1, 6:31 am, Daniel wrote:
> return u', '.join(self.facet.all()) does not work.
Sorry, the code should have been:
return ', '.join([f.name for f in self.facet.all()])
> Basically I would like to display every field of my Sample class in
> the admin view, like so:
>
> Sample1
>
On Thursday 01 Apr 2010 1:14:12 pm Norman wrote:
> I'm trying to test simple portal with two apps and two sub domains
> mysite.com and blog.mysite.com, but I cant find any example of ngnix
> configuration file on local ubuntu server.
>
>
> So my question is - how to setup ngnix and django to test
Hi,
I'm trying to test simple portal with two apps and two sub domains
mysite.com and blog.mysite.com, but I cant find any example of ngnix
configuration file on local ubuntu server.
So my question is - how to setup ngnix and django to test such
multihost on single django instance and local pc?
On Thursday 01 Apr 2010 1:00:00 pm Wesley Childs wrote:
> I removed the sqlite db file, changed the table name to something more
> random and I still hit the same problem.
>
are you able to import your model and views.py from the shell. Just check if
both these work - from yourproject.yourapp.vi
Hi,
Thanks for the advice.
I removed the sqlite db file, changed the table name to something more
random and I still hit the same problem.
Do you have any other ideas?
Thanks
Wes
On 1 April 2010 00:42, Russell Keith-Magee wrote:
> On Thu, Apr 1, 2010 at 1:16 AM, wchildsuk wrote:
> > Hi,
>
42 matches
Mail list logo