On Tue, Aug 30, 2016 at 11:46:14PM -0700, Web Architect wrote:
> Hi Erik,
>
> I tried your solution but there are some issues:
>
> .filter(date_created=Max('a__b__date_created')) - this is throwing error
> saying not proper use of group function.
>
> If I remove the above, the result isn't cor
If you are asking if it is possible to create such field, the response
is yes, you can create such field.
Looking at the source of CommaSeparatedIntegerField, you can see it's
a simple CharField with a validate_comma_separated_integer_list
validator and a custom error message.
You could also have
Hi jeff,
I would suggest you looking up the documentation on creating a
database [1] and the following section on how to connect to your
freshly created database from django.
When you get to creating your table, you might want to simply use
django's tools. One of the key feature for developer on
Hi Michal,
Thanks for the solution. I tried the solution in a different way:
A.objects.annotate(
max_date_created=Max('b__date_created')).filter(b__date_created=F('max_date_created'),
b__text='ABCD')
Hope the above amounts to the same thing as you have suggested.
Thanks.
On Wednesday,
Hi,
I wanted to refactor my code using cache.get_or_set instead of using
cache.get and then check for None and so on
However, after a few tests, it seems that get_or_set does not work as
its name suggests: it is more get_or_add than get_or_set
Looking at the source code, it indeed does a ge
You're welcome to submit a documentation patch to help clarify.
On Wednesday, August 31, 2016 at 5:54:21 AM UTC-4, florian wrote:
>
> Hi,
>
> I wanted to refactor my code using cache.get_or_set instead of using
> cache.get and then check for None and so on
>
> However, after a few tests, it see
I thought that I've checked all my dependecies, and effectively I forget to
update one of them. Now it's working, thank you very much.
El martes, 30 de agosto de 2016, 18:45:23 (UTC+2), Tim Graham escribió:
>
> You need to update your own code or one of your dependencies as per
> https://docs.dj
Hi I am having this error while I am trying to delete session and cart by
IDs after order fulfillment.
carts/views.py
class CheckoutFinalView(CartOrderMixin, View):
> def post(self, request, *args, **kwargs):
> order = self.get_order()
> order_id = order.id
> print ord
Hello,
although it is possible, I'd go with an IP field and generate a list of
them, comma separated, at run time. This will make it easier to search and
manage the list.
Best,
Gergely
On Wed, Aug 31, 2016, 00:29 Jorge Cadena wrote:
> Hi
>
> I have a idea CommaSeparatedIpField, it possible ?
Hello guys,
I am newbie in Django and started learning with Standard Documentation
version:
*1.10.I *already Install Django 1.10 and Python 3.4 in Linux Ubuntu 15.04
But in first phage I got some problem
I type command
django-admin startproject mysite
error:
Cannot find installed versio
But it's okay, isn't it?
I mean, *add* is used to add the key if the key doesn't exist.
*set* on the other hand, will set the value anyway.
In the case of *get_or_set *the set should work like an *add *because it'll
be called only in case the key doesn't exist.
Or am I missing something?
On Wed,
How did you install Django?
On Wed, 31 Aug 2016 at 14:17 jsroyal wrote:
> Hello guys,
> I am newbie in Django and started learning with Standard Documentation
> version:
> *1.10.I *already Install Django 1.10 and Python 3.4 in Linux Ubuntu 15.04
> But in first phage I got some problem
> I ty
I think the key line of the traceback is this -
> File "C:\Users\Shazia\dd\src\orders\views.py" in dispatch
> 27. user_checkout = UserCheckout.objects.get(user=
request.user)
And the error is being thrown during your redirect to /orders/4/ at the end
of the post. What does your order
sudo apt-get install python-django-common
Through this command.
--
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 email
to django-users+unsubscr...@googlegroups.com.
To
I rather recommend you using a virtualenv and install using pip instead
http://tutorial.djangogirls.org/en/django_installation/
On Wed, 31 Aug 2016 at 14:50 jsroyal wrote:
>
> sudo apt-get install python-django-common
> Through this command.
>
>
>
> --
> You received this message because you are
+1 on using pip
It will make your live easier
2016-08-31 15:15 GMT+02:00 Daniel França :
> I rather recommend you using a virtualenv and install using pip instead
> http://tutorial.djangogirls.org/en/django_installation/
>
> On Wed, 31 Aug 2016 at 14:50 jsroyal wrote:
>>
>>
>> sudo apt-get instal
Following is the dispatch function:
def dispatch(self, request, *args, **kwargs):
try:
user_check_id = self.request.session.get("user_checkout_id")
user_checkout = UserCheckout.objects.get(id=user_check_id)
except UserCheckout.DoesNotExist:
user
Le mercredi 31 août 2016 14:19:39 UTC+2, daniel.franca a écrit :
>
> But it's okay, isn't it?
> I mean, *add* is used to add the key if the key doesn't exist.
> *set* on the other hand, will set the value anyway.
>
> In the case of *get_or_set *the set should work like an *add *because
> it'll b
This might be silly to ask but - can we assume you've completed the django
tutorial?
On Monday, 29 August 2016 16:56:33 UTC+5:30, rajeshkmr9583 wrote:
>
> Hi,
>
> i'm new to Django i need some mini project which contain at least 4
> page for go through how it works..
>
> Thanks
>
--
You
It's nice that you are on Ubuntu. :) Here is a quick and dirty way to get
up to speed, (going to assume you will use python3)
# Installing virtualenv globally
$ sudo apt-get update
$ sudo apt-get install python3-pip
$ sudo pip3 install virtualenv
Once you have that done, navigate to an empty di
Thanks @Abraham for helping me out.
Now i getting run up.
--
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 email
to django-users+unsubscr...@googlegroups.com.
To post to
Hi,
I have a model with a PointField, created with the spatial_index set as True
(the default value). Doing a \d table_name on postgresql revealed the index
that was created, as expected.
I updated the spatial_index to False and ran the migrations, which *did not*
drop the index in the db.
I was
That looks plausible. The place to patch would probably be
https://github.com/django/django/blob/master/django/contrib/gis/db/backends/postgis/schema.py.
Could you create a Trac ticket and, if possible, a patch?
On Wednesday, August 31, 2016 at 6:33:23 PM UTC-4, Arjun Attam wrote:
>
> Hi,
>
> I
Hi,
I have completed my frnd and by the tutorial we are working with admin
site i'm planning to work with my own html and css page. With i'll work
Admin site but when i try to work with my own html page i'm not able to
work.
Thanks my frnd,
On Wed, Aug 31, 2016 at 9:20 PM, 'Abraham Varricatt
Hi,
I have completed the tutorial my friend and by using the tutorial we are
working with admin site only. I'm planning to work with my own HTML page. I
have with worked Admin site but when i try to work with my own HTML page
I'm not able to work. And now only started learning Django So i do
There exists a bit more detailed tutorial for Django:
http://www.marinamele.com/taskbuster-django-tutorial
On 01.09.2016 08:58, rajeshkmr9583 wrote:
Hi,
I have completed the tutorial my friend and by using the tutorial
we are working with admin site only. I'm planning to work with my own
Thanks
Jani Tiainen
On Thu, Sep 1, 2016 at 11:30 AM, Jani Tiainen wrote:
> There exists a bit more detailed tutorial for Django:
>
> http://www.marinamele.com/taskbuster-django-tutorial
>
> On 01.09.2016 08:58, rajeshkmr9583 wrote:
>
> Hi,
>
>I have completed the tutorial my friend and by
27 matches
Mail list logo