]
> kwargs = dict([(p, request.GET.get(p)) for p in params if
> request.GET.get(p)]) # use just the request params whose value is not
> empty string
> Property.objects.filter(**kwargs)
>
> On Dec 16, 12:40 pm, Osiaq wrote:
> > Well, still the same:
> >
Aptana Studio
On Feb 10, 11:09 pm, "Cal Leeming [Simplicity Media Ltd]"
wrote:
> Looks interesting, but the interface is ugly :/ I'll try it out tho :)
>
> On Thu, Feb 10, 2011 at 8:39 PM, Mike Ramirez wrote:
> > On Wednesday, February 09, 2011 11:31:07 pm Cal Leeming [Simplicity Media
> > Ltd
My bad, sorry! That was simple
form['customer']='modified_customer_name'
On Feb 3, 1:23 pm, Daniel Roseman wrote:
> On Thursday, February 3, 2011 2:09:56 AM UTC, Osiaq wrote:
>
> > Hi all!
> > I'm receiving the form from index.html and redirecti
Thank you :)
On Feb 3, 1:41 pm, Tom Evans wrote:
> On Thu, Feb 3, 2011 at 2:09 AM, Osiaq wrote:
> > Hi all!
> > I'm receiving the form from index.html and redirecting to order.html
> > I would like to change "customer" value before redirection.
> > W
Hi all!
I'm receiving the form from index.html and redirecting to order.html
I would like to change "customer" value before redirection.
When I try to modify it, Im getting "object does not support item
assignment"
How can I change "customer" value posted from index.html ?
Thank you!
-
Maybe decorate the view with @csrf_extempt and test it
like this:
---views.py---
from django.core.context_processors import csrf
from django.views.decorators.csrf import csrf_exempt
@csrf_exempt
def contact(request):
form = ContactForm()
...some wicked logic here ...
return render_to_re
ss sub interpreters doesn't occur.
>
> Graham
>
> On Thursday, January 20, 2011 11:20:36 AM UTC+11, Osiaq wrote:
>
> > Hi all!
> > I have 2 separate projects, with 2 separate domains
>
> > The problem: first website, ELG, is working OK.
> > Another, cc4h
No Vovk, it is not :) Official Django docs are missing some vital
stuff :)
On Jan 20, 5:56 am, Vovk Donets wrote:
> Man, this is just a quote from Django Documentation.
>
> 2011/1/20 Osiaq
>
> > Same problem here. Follow those rules, is simple and is working
>
;, 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
On Jan 20, 2:46 am, Kenneth Gonsalves wrote:
> On Wed, 2011-01-19 at 16:20 -0800, Osiaq wrote:
> > It doesnt seems as easy as I thou
Same problem here. Follow those rules, is simple and is working
perfect.
http://twigstechtips.blogspot.com/2009/08/django-how-to-serve-media-files-css.html
On Jan 20, 1:58 am, "brian.mus...@ff.com"
wrote:
> Is it me or does it blow your mind that there is not one standard way
> of importin
Hi all!
I have 2 separate projects, with 2 separate domains
The problem: first website, ELG, is working OK.
Another, cc4h, cannot find template index.html, but is working perfect
on localhost with Django development server.
Do you know any good tutorial regarding multiple domains on single
Apache
Hello! Is there any way to pass parameters into INCLUDE implemented
within django template?
Something like this:
{% include 'test.html' x='10' %}
or similar?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
if not,
> create a new view that returns the python path *as seen when launched
> from apache* and see if it is correct there.
>
> 2009/12/30 Osiaq :
>
> > INDEX.HTML:
> > error message: 'thumbnail' is not a valid tag library: Could not load
> > templat
nt server using 'python manage.py runserver' is working
perfect
the same machine using apache2 + mod-python fails
thumbnail location: /home/osiaq/djangoprojects/myproject/sorl/
thumbnail
python path: ['/home/osiaq/djangoprojects/myproject/sorl/', '/home/
osiaq/djangopr
Thank you :) That was the only thing I didn't try :)
It works flawlessly :)
On Dec 20, 8:39 pm, rebus_ wrote:
> {% for a in p.gallery.all %}
> <--- TRY THIS
> {% endfor %}
>
> http://docs.djangoproject.com/en/dev/ref/files/file/#django.core.file...
--
You received this message because y
MODEL:
class PropertyGallery(models.Model):
link = models.ImageField(upload_to="gallery/props/")
class Property(models.Model):
name = models.CharField(max_length=200)
gallery=models.ManyToManyField(PropertyGallery)
---
extend a reusable app's "template-ready query library" by defining
> your own templatetags that use its models .. it's very powerful and
> flexible.
>
> -Ethan
>
> On Sat, Dec 19, 2009 at 6:17 PM, Osiaq wrote:
> > @Brian
> > Thank you very
@Brian
Thank you very much for clear explanation!
I gives me much more than enormous pages of manuals.
@Itay
Thanks for suggestion, but refractoring inside views.py looks more
clear to manage.
I wasn't also sure, if such simple solution requires middleware
involved. I will probably have
more than
VIEWS:
def services(request):
property = Property.objects.all().order_by('name')[:4]
city = City.objects.all()
category=PropertyCategory.objects.all()
status=PropertyStatus.objects.all()
return render_to_response('website/services.html',{'property':
property
@Phui Hock:
YES YES YES !!! You are the One, thank you !!!
@creecode: Thank you for exclude(**kwargs) manual, will have closer
look at it, sounds interesting.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Well, still the same:
VIEW:
def search(request):
t=request.GET['city']
c=request.GET['category']
s=request.GET['status']
properties
=Property.objects.filter(Q(city__isnull=True)|Q(city=t),
Q(category__isnull=True) | Q(category=c), Q
Yes, this one is working properly.
Actually I can use i.e
properties = Property.objects.filter( Q(city=t) & Q(category=c ) & Q
(status=s) )
These parameters are working perfect for:
city='Tokio', category='House', status='For Rent'
But fails for:
city='Tokio', category null, status null
Similar
Andy, I couldn't manage it. Could you (please) give me some example?
It looks like this case is NOT simple at all, googling through
multiple websites didn't bring anything even close to required
solution.
MODEL:
class Property(models.Model):
name = models.CharField(max_length=200)
Thank you, I'm gonna try this way :)
--
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.
Fo
That post wasn't clear, my bad.
Again:
t=request.GET['city']
c=request.GET['category']
s=request.GET['status']
properties = Property.objects.filter( Q(city=t) | Q
(category=c ) | Q(status=s) ) #example filter
On the website I've implemented search engine with 3 li
I'm trying some "simple" stuff and just can't find out the solution:
t=request.GET['city']
c=request.GET['category']
s=request.GET['status']
properties = Property.objects.filter( Q(city=t) | Q(category=c ) | Q
(status=s) )
Goal:
Find all the properties in 'city' no
26 matches
Mail list logo