Re: Django field model for HTML parser?

2017-11-17 Thread drone4four
I didn’t do a very good job explaining. Let me try again. If you take a look at this image of Blogger, the red arrow points to the formatting bar . The formatting is a helpful feature in Blogger which allows blog posters to add an essay worth of content, and then

Re: reg:not able to open registration form web page

2017-11-17 Thread Mike Dewhirst
Amitesh I found this helpful ... https://simpleisbetterthancomplex.com/tutorial/2017/02/18/how-to-create-user-sign-up-view.html Cheers Mike On 17/11/2017 10:07 PM, 'Amitesh Sahay' via Django users wrote: Hello James, Thanks a lot for reply. There are couple of things that I would like to

Enable to display datas which are related

2017-11-17 Thread Daniel Roseman
Why have you posted pictures? Don't. -- 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 this group, send email

Django Group with specific permission

2017-11-17 Thread Allan Nava
Hi, I need to add a specific permission for users of group such as add new member, but only for the group users. I have installed the django-permission -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop r

Enable to display datas which are related

2017-11-17 Thread Uwe Aime Van
Hi as you can see on above pictures above i have relationship between AddProduct Model and SubCategory according to foreign key that i have made, i can not products which are related or belonged to specific subcategory, Can anyone help me on this please?? -- You received this message because y

Re: Upgrading from 1.9 to 1.11 Closed Network

2017-11-17 Thread Todd Gilliland
Great. Thanks Jason. On Friday, November 17, 2017 at 8:29:02 AM UTC-5, Jason wrote: > > You can do this with pip, check out > http://www.nyayapati.com/srao/2014/06/how-to-pip-install-python-packages-offline/ > >> >> -- You received this message because you are subscribed to the Google Groups

Re: Upgrading from 1.9 to 1.11 Closed Network

2017-11-17 Thread Jason
You can do this with pip, check out http://www.nyayapati.com/srao/2014/06/how-to-pip-install-python-packages-offline/ > > -- 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

Re: How to Speed up Loading the First Page of Django Project?

2017-11-17 Thread Jason
I would suggest you post the configuration file here as well as the server specifications and average CPU/memory usage. Because what you're describing is definitely not normal and is most likely related to how Apache is configured. A point of clarification: does the first page always load slow

Re: How to do query inner join in django rest framework

2017-11-17 Thread Jason
I would look at the django beginner tutorial first https://docs.djangoproject.com/en/1.11/intro/tutorial01/ what you're asking for is covered in part 2 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

Re: How to get as result a list of all the users ordered by birthday (month day), ignoring year

2017-11-17 Thread Roy Shillingburg
https://stackoverflow.com/questions/4236226/ordering-a-django-queryset-by-a-datetimes-month-day On Friday, November 17, 2017 at 7:19:43 AM UTC-5, Roberta Takenaka Granero wrote: > > In models: > > birthday = models.DateField() > > def birthday_month_day(self): > # returns month and day >

Saving webp image near jpg version

2017-11-17 Thread Дмитрий Горобец
I want to save webp image near jpg version. Now I'm doing it this way: class ProductImage(models.Model): product = models.ForeignKey( to=Product, related_name='images', on_delete=models.CASCADE, ) image = models.ImageField( upload_to=upload_product_imag

Dynamically change model managers after initial queryset instanciation

2017-11-17 Thread Jason
Let's say I have a Poll object with two managers attached like so: class Poll(models.Model): #fields here objects = PollManager() subjects = SubjectManager() is it possible to dynamically change which manager is used to make which query after the initial call? For example results

Re: how to do query inner join in django 1.11

2017-11-17 Thread Angel Omar Rojas Pacheco
Hello Cristiano, my relation ship data base is in this case one to many. thanks On Thursday, November 16, 2017 at 11:38:27 PM UTC-2, Cristiano Coelho wrote: > > .select_related or prefetch_related? Depends on if it's a 1-Many or > Many-Many relationship. > > El jueves, 16 de noviembre de 2017, 13

Upgrading from 1.9 to 1.11 Closed Network

2017-11-17 Thread Todd Gilliland
I need to upgrade Django 1.9 to 1.11 on a closed network. Is there a way to upgrade from a downloaded source file ? I've successfully upgraded on our Cloud environment using "pip3.5 install -U Django" but can't use this command on a closed network since pip is looking to go out Thanks. Todd

How to get as result a list of all the users ordered by birthday (month day), ignoring year

2017-11-17 Thread Roberta Takenaka Granero
In models: birthday = models.DateField() def birthday_month_day(self): # returns month and day return '12-31' In views, I expect to see something pythonic like this: User.objects.all().order_by('birthday_month_day') I know it does not work because birthday_month_day is not a colum

Re: text in translation strings?

2017-11-17 Thread Przemysław Melnarowicz
Actually second solution will work (with django 1.10.5 at least) but with `safe` filter added (and it's more convinient to use `trimmed` than create oneliner): {% blocktrans trimmed with ''|safe as link_begin and '' as link_end %} Lorem lipsum sit dolor amet enim - {{ link_begin }}Sth{{ lin

Re: reg:not able to open registration form web page

2017-11-17 Thread 'Amitesh Sahay' via Django users
Hello James,  Thanks a lot for reply. There are couple of things that I would like to bring to the notice 1) I did go through that part of django document before posting the issue here.2) In that doc, in the 2nd "if" condition, its talking about cleaned_data. In one of the public forum, I was as

ManytoMany Relation and Custom widget in Django

2017-11-17 Thread Paul
I have two models Category and Products. - a Product can have multiple Categories - a Category can have multiple Products. - Categories have a circular Foreign key, to itself. - not all Categories have the same depth level Example: Category A - Category A_1 - category A_2