In my django app if two users are login in the same account and are
registering two different clients then both the clients are added
under the same client id but it should register under different client
ids. So what should I do for that.
--
Amanjot Kaur
Blog: kauramanjot35.wordpress.com
--
Y
On 1/11/2013 12:01pm, brian wrote:
*How do I slice a QuerySet and keep it as a QuerySet*
https://docs.djangoproject.com/en/1.5/ref/models/querysets/#when-querysets-are-evaluated
https://docs.djangoproject.com/en/1.5/ref/models/querysets/#methods-that-return-new-querysets
*If I do*
*a = qs
Couple of links which might be of interest ...
http://www.jeffknupp.com/blog/2012/02/14/profiling-django-applications-a-journey-from-1300-to-2-queries/
http://gun.io/blog/fast-as-fuck-django-part-1-using-a-profiler/
ymmv
Mike
On 31/10/2013 2:47pm, Carlos D. wrote:
So, first thing: I come fr
*How do I slice a QuerySet and keep it as a QuerySet*
*If I do*
* a = qs[:3]*
*then I get a list back. I want a QuerySet. *
*I'm wanting to get the first x items in the query set and the last x
items in the query set.*
--
You received this message because you are subscribed to the Go
Hello,
I have attached my patch for the ticket
https://code.djangoproject.com/ticket/19842 . It would be great if the
patch can be reviewed.
Thank you.
avani9...@gmail.com
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from th
Hi,
I have a question about handling ValidationErrors in templates.
ValidationError allows to pass custom error code to its constructor like
this:
ValidationError(_('Error 1'), code='error1'),
But I can't find any way to access this code in template. Actually in
forms/forms.py
class in Djan
On Thu, Oct 31, 2013 at 3:44 PM, msoulier wrote:
> Hi,
>
> If I return an HttpRedirect() with a relative URL in it, I notice that
> Django fully qualifies the redirect with a hostname and scheme.
>
> ie.
>
> Location /foo/bar/
>
> goes to
>
> Location https:myserver.mysite.com/foo/bar/
>
> Is ther
Context: Mac OS X 10.7.5, Django 1.5.4
In a multidatabase project (two databases':default' and 'noe') I have the
following model in 'default' database
class MovimentoOrdineDettaglio(models.Model):
id_ordine = models.ForeignKey(MovimentoOrdine,db_column='id_ordine')
codarticolo = models.Fo
So what is the problem, really?
On Wednesday, 30 October 2013 20:17:17 UTC, pete wrote:
>
> Hi
> New to django,need help! just trying to retrieve values from a template
> to a view.py (ie user may input text, make choice selection, select a
> radio button value)
> like to know the poll list se
Thank you so much for your reply. But I am just a beginer, didn't quite
understood the 'Manger' thing. Will you please be kind enough to elaborate
a little more. Thank you.
On Thu, Oct 31, 2013 at 8:44 PM, Aamu Padi wrote:
> I have a model for uploading photos in an album by the users. But if t
Hi,
If I return an HttpRedirect() with a relative URL in it, I notice that
Django fully qualifies the redirect with a hostname and scheme.
ie.
Location /foo/bar/
goes to
Location https:myserver.mysite.com/foo/bar/
Is there a reason to fully qualify like this? I've found relative URLs much
m
It’s more than ok to guive the user reference only to the Album. That is
what is called normalization in the relational world.
About your first question, my solution is extract this logic from the model
itself. I think it’s better to create a service object to do that.
Eg:
class PhotoManager(obj
I have a model for uploading photos in an album by the users. But if the
user don't want to create an album, and just upload photos, I want it to be
uploaded in a default album, namely 'Default album'. So that, whenever the
user uploads photo without creating a new album, the 'Default album should
On Thu, Oct 31, 2013 at 9:25 AM, wrote:
> Hi,
>
> Summary:
> I'm getting this error "(2026, 'SSL connection error: Failed to set
> ciphers to use')", on the django error page and I don't know what i
> happening!!!
>
>
> I'm using apache / wsgi and my aplication it's on a virtualenv.
>
> The m
Hi,
Summary:
I'm getting this error "(2026, 'SSL connection error: Failed to set
ciphers to use')", on the django error page and I don't know what i
happening!!!
I'm using apache / wsgi and my aplication it's on a virtualenv.
The main problem is that I can't connect to a remote mysql ove
On Wednesday, 30 October 2013 20:17:17 UTC, pete wrote:
> Hi
> New to django,need help! just trying to retrieve values from a template
> to a view.py (ie user may input text, make choice selection, select a
> radio button value)
> like to know the poll list section, market selection, coupon co
16 matches
Mail list logo