Hello,
I'm using crispy forms with zurb foundation. Since crispy-forms-foundation
isn't that advanced, I need to develop it further by myself. So I've
encountered a problem. I need to change the CSS classes of the surrounding
div dynamically:
The template (django_crispy_forms/templates/
Ah, I see. Sorry.
Applying list() to the form at the end of the function does not affect the
form.is_valid() you're doing before or the form at all. So your problem
must be another kind.
So I must repeat what someone said in your other thread: Please describe
your problem further. Why doesn't
If you don't want a particular field to display, then don't include it into
your form. Not showing it doesn't exclude it from form processing, so it's
a security risk.
You can exclude fields with the exclude attribute of the forms inner Meta
class:
https://docs.djangoproject.com/en/dev/topics/
As far as I understand, you want to iterate over all form fields. Someone
correct me if I'm wrong, but I've never seen anyone trying to achieve this
via list(form).
Anyway, forms are iterable, so you can iterate over them in the templates:
{% for field in form %}
{{ fi
This is a very theoretical question about best practice. I and surely most
other users know how to do this in *any* way, but I'm interested in the *best
*solution, if it exists.
Given that:
- I am inheriting a given form I cannot modify directly, let's say the
AuthenticationForm
- I w
Those people who are able to analyse a motto with the sufficient sense of
humour and subtleness and do not break it down to single incoherent parts.
Sorry to be rude, but what's the point of this question other than trolling?
In my case, I _am_ a perfectionist with deadlines and it fits pretty m
:43:56 UTC+2 schrieb Tony:
>
> Thank you sbrandt. I found the same thing, but i don't know how to use it.
> Where do i need to copy the files and do i erase some lines of the code or
> not, to make them as comments. I'm trying but i am not succeeding at making
> it work..
After evaluating some API creation frameworks, namely tastypie, pistion and
django rest framework, it came out that I would never use the first two in
my projects.
Sorry that I can't provide more detailed information, but it's about a year
ago. Both had issues with their architecture and philos
Did you know there is django-auth-ldap which is a custom backend for
authenticating users through LDAP?
http://pypi.python.org/pypi/django-auth-ldap/
I don't see the point why you fiddle around with writing code on your own.
I'm using django-auth-ldap since one and a half year in production and
ange to the database backend using outer
joins, doesn't it? So my problem isn't likely to be solved more elegant in
the near future. Thanks for all! :)
Am Samstag, 28. Juli 2012 23:15:37 UTC+2 schrieb akaariai:
>
> On 28 heinä, 15:39, sbrandt wrote:
> > > On 28
Am Samstag, 28. Juli 2012 14:04:29 UTC+2 schrieb akaariai:
>
> On 28 heinä, 12:20, sbrandt wrote:
> > Hello,
> >
> > for the first time ever how to compile a query with the Django ORM :/
> >
> > There are two Models: The second model has a foreign key t
Hello,
for the first time ever how to compile a query with the Django ORM :/
There are two Models: The second model has a foreign key to the first model
and a type, where the combination of "first model and second model's type"
is unique. Let's say type 1 are dogs, type 2 are cats and every mod
There is another way: Class Based View decorators:
http://djangosnippets.org/snippets/2668/
--
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
Sorry, answered directly to author by accident.
Isn't this achieved by using class based views?
from django.views.generic import View
class MyView(View):
def get(request, *args, **kwargs)
...
def post(request, *args, **kwargs)
...
In addition, you can use the built-in
mod_wsgi doesn't support print, does it? Its usage should raise an
exception.
--
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
djan
Thumbs up for Django REST framework. While being younger than tastypie
and piston, it has some more cool features besides the mentioned
creation of doc above.
It also creates a HTML debug interface for every resource and follows
the class based views and form validation paradigms of django making
Hello,
I hope it's okay to if I just share a StackOverflow link here because
I've explained the problem in detail there:
http://stackoverflow.com/questions/8678897/
I hope any of you guys encountered the same error because I don't know
what to do next. It works on a second virtual machine running
17 matches
Mail list logo