Create a separate block to exclude certain endpoint above others.
You can also try following approach.
https://groups.google.com/forum/embed/#!topic/openresty-en/apyaHbqJetU
Regrads,
Mudassar
On Fri, Sep 23, 2016 at 12:26 PM, gg4u wrote:
> Hello,
>
> I want to cache all api endpoints except of
I see you posted the same thing in Trac:
https://code.djangoproject.com/ticket/27264
For future reference, it's better not to duplicate posts. Otherwise, you
might have multiple people duplicating effort to investigate the issue.
Thanks.
On Friday, September 23, 2016 at 10:58:13 AM UTC-4, luxc
Hello,
I want to cache all api endpoints except of one: /api/search endpoint.
Do I need to specify settings for each of the endpoints?
My configuration use nginx as server on port 8000 and port 80 as virtual
proxy server.
Please not I removed settings not related to question to minify the post!
Yeah, I know :\, but still maybe someone have a good idea :), lot of people
still using old Django versions.
I tried the expressions, the `F()` but it not worked well and I had no time
to debug why, but in next weeks I'll probably create a slug field to
compare directly.
I post here if have updat
Not sure, this is using lots of private API and QuerySet.extra() which is
discourage these days. I'm afraid you won't get much help for unsupported
Django versions.
After you upgrade to Django 1.9+, hopefully you can construct your query
using the new expressions API!
https://docs.djangoprojec
Hello folks!
I have a complex queryset here that do joins in at least 8 tables. The
query is fast, but has use of Postgresql `concat` method, and to make it
have correct aliases I'm using `qs.query.alias_map` where qs is my queryset
instance:
def my_complex_queryset(self):
qs = self.filter(*l
Hi, it seems to be an actual django bug, the example at the
addresshttps://docs.djangoproject.com/en/1.10/topics/db/models/#meta-inheritance
does not work correctly,
from django.db import models
class BaseCategory(models.Model):
title = models.CharField(max_length=100)
Try a web search for "django passing request to a form".
Here's the first result:
http://stackoverflow.com/questions/6325681/passing-a-user-request-to-forms
On Friday, September 23, 2016 at 7:17:32 AM UTC-4, Naresh Kumar wrote:
>
> Hello,
>
> I need filter a queryset based on current user in Dja
in my program javascript dont read the data which is got from django but
the same page html tag the the data.
here is my code
var bubbleChartData = {
datasets: [ {
label: "Graph of Attacks",
backgroundColor:"#FF6384",
Using Django 1.9.9, Python 2.7
I am trying to figure out why I am not able to delete form/instance inside
of FormSet. I was folowing debug to this function in *django.forms.formsets.py
line 300.*
def _should_delete_form(self, form):
"""
Returns whether or not the form was marke
Hello,
I need filter a queryset based on current user in Django forms.
kindly help me if you find any.
Thanks,
Naresh
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an e
Hello,
Consider this set of models:
class Artist(models.Model):
name = models.CharField(max_length=10)
class Album(models.Model):
artist = models.ForeignKey(Artist, on_delete=models.CASCADE)
12 matches
Mail list logo