Re: Get queryset outside models.py

2019-08-23 Thread James Schneider
> > > I would like to know if it is possible to retrieve *models*.mymodel > instance from outside the models.py to retrieve a queryset. > Yes, a vast majority of the time you'll be retrieving instances from your views and templates. There are only a few cases where you would retrieve instances wit

Re: Django with mysql

2019-08-23 Thread Amit Samanta
On Friday, August 23, 2019 at 8:25:47 PM UTC+5:30, Amit Samanta wrote: > Hi, > > > I am facing issue while downloading mysql client > Here i am using linux server and i do not have internet connection > Also downloaded all the packages from https://www.pypi.org > We have created user,password and

Re: Get queryset outside models.py

2019-08-23 Thread Sipum
What error you are getting cannu post it here with your code for model manager. On Sat, 24 Aug, 2019, 2:20 AM Ezequias Rocha, wrote: > Hi everyone > > I would like to know if it is possible to retrieve *models*.mymodel > instance from outside the models.py to retrieve a queryset. > > I want to m

Re: Translator of words and phrases in Django

2019-08-23 Thread Harold A
El martes, 20 de agosto de 2019, 9:05:05 (UTC-5), Harold A escribió: > > Hello everyone > > I am practically new to django and I want to make a word translator > similar to the google translator, for the translation of my into native > language into English and Spanish. > > > So that our native

Re: Django with mysql

2019-08-23 Thread Ahlam Abdurahman
I downloaded the mysql client wheel for the version that I am using , then worked fine. But you will need internet. On 8/23/19, Khalifa Gueye wrote: > Hi, > With python 3.6, you have To install mysqlclient 1.3.14. I try with others > version of mysqlclient but no result > > Le ven. 23 août 2019 à

Problems with authenticate in Django 1.10

2019-08-23 Thread Marcos Fraga
HI, I'm trying to migrate an application from *Django1.8.5/Python2.7* to *Django 1.10/Python3.6* and having problems with code below: def clean_password(self): username = self.cleaned_data.get('username') password = self.cleaned_data.get('password') user = authenticate(us

Re: Django with mysql

2019-08-23 Thread Khalifa Gueye
Hi, With python 3.6, you have To install mysqlclient 1.3.14. I try with others version of mysqlclient but no result Le ven. 23 août 2019 à 14:55, Amit Samanta a écrit : > Hi, > > I am facing issue while downloading *mysql client* > Here i am using linux server and i do not have internet connecti

RE: 3D Object Interaction

2019-08-23 Thread Tin Le
Yes, I got it. Thanks From: Thiago Luiz Parolin Sent: Friday, August 23, 2019 6:59 AM To: django-users@googlegroups.com Subject: Re: 3D Object Interaction there is a free and a paid version. look at https://www.blend4web.com/en

Get queryset outside models.py

2019-08-23 Thread Ezequias Rocha
Hi everyone I would like to know if it is possible to retrieve *models*.mymodel instance from outside the models.py to retrieve a queryset. I want to make a selection in a specific model but I am not inside the model. I need to perform some update in my action model but the information is in

Re: Django with mysql

2019-08-23 Thread Gabo LaTo
Hi! If you don't have internet you will have to download the package from another computer where you have internet from the original repository ( https://pypi.org/project/mysqlclient/#files) and move them with a USB or whatever you want to the offline computer. And manually install the package.

Django with mysql

2019-08-23 Thread Amit Samanta
Hi, I am facing issue while downloading *mysql client* Here i am using linux server and i do not have internet connection Also downloaded all the packages from *https://www.pypi.org* We have created user,password and database for django in a different mysql server 5.6 Things i have done: First o

Re: Rest Franework

2019-08-23 Thread Soumen Khatua
Hi Andres, Yes I read your article what you shared with me now I understand that I need to override the inbuilt django rest framework template to get expected result. But I don't know How can i do that, So my query is what is road map to do that? As of Now I extended restframework provided *base.h

Re: 3D Object Interaction

2019-08-23 Thread Thiago Luiz Parolin
there is a free and a paid version. look at https://www.blend4web.com/en/downloads/ in this page you will get all you need to know about this. Em sex, 23 de ago de 2019 às 08:38, Tin Le escreveu: > Is it free? > > -- > You received this message because you are subscribed to the Google Groups > "

Re: Django's str(queryset.query) returns invalid SQL if I compare datetimes

2019-08-23 Thread Abdulrasheed Ibrahim
What is your model, is 'date' a DateField or a CharField? On Thu, Aug 22, 2019, 12:47 PM wd QuerySet.query is not a plain string, it's an Query object, you can check > the source code > > def __str__(self): >> """ >> Return the query as a string of SQL with the parameter values >> su

Re: 3D Object Interaction

2019-08-23 Thread Tin Le
Is it free? -- 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 view this discussion on the web visit https://groups.g

Re: Hello, everybody! I've tried using FormMixin with DetailView and I get error 405 on post method. Can anybody help me? Thanks a lot.

2019-08-23 Thread Catalina Popescu
I'm afraid not. Popescu is a very common first name here. But your help depends on that presumed relation? ;) Joking. On Fri, Aug 23, 2019 at 2:19 PM Mehmet Demirkaya wrote: > Do have relation with Mr Popescu from Romanian Central (National) Bank? > > On Fri, 23 Aug 2019 at 09:58, Catalina Pope

Re: Django apphooks

2019-08-23 Thread Gabo LaTo
Hi Perceval, Have you added your page to a route in the urls.py of your archivesuploads app? See here http://docs.django-cms.org/en/latest/how_to/apphooks.html for more details. El vie., 23 ago. 2019 a las 5:18, Perceval Maturure () escribió: > > Dear Django users > > below is my django cms app

Re: Hello, everybody! I've tried using FormMixin with DetailView and I get error 405 on post method. Can anybody help me? Thanks a lot.

2019-08-23 Thread Mehmet Demirkaya
Do have relation with Mr Popescu from Romanian Central (National) Bank? On Fri, 23 Aug 2019 at 09:58, Catalina Popescu wrote: > Morning, James > > The browser just throws HTTP ERROR 405. > In CMD: > Method Not Allowed (POST): books/book/10/ > Method Not Allowed: books/book/10/ > "POST /book/book

Queryset can't print after annotate

2019-08-23 Thread Louie Feng
[image: error2.png] [image: error.png]The first print is ok, but the secod print will raise Error. -- 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-use

Call annotate after union will raise error, why, how can I solve it?

2019-08-23 Thread Louie Feng
Call annotate after union will raise error, why, how can I solve it? For example: cards = card10.union(SCPSimcard.objects.filter(pk=7)) cards.annotate(n=F('id')) the follow is traceback info: Traceback (most recent call last): File "", line 1, in File "C:\Users\hasee\Envs\tb_simcard\lib\sit

Re:

2019-08-23 Thread Sarvesh singh
On YouTube channel #codewithharry Django series On Fri, Aug 23, 2019, 3:21 AM Perceval Maturure wrote: > Tutorial on how to simply hook the app to the page > > On Thu, 22 Aug 2019 at 23:49, Perceval Maturure > wrote: > >> Hi All >> My app is not displaying records from the database after hookin

ResultSet with query on multiple models

2019-08-23 Thread Benoit Dupont
Hello, I've played a lot of time with Django and it's a great tool for basic query but I don't figure out how to play with Django to do a query spanning between a lot of models. This is the query I do to display all Animals and their corresponding Vaccines with Encounter.status 'in-progress'

Re: 3D Object Interaction

2019-08-23 Thread Thiago Luiz Parolin
Hi, Did you tried Blend 4 web? https://www.blend4web.com/en/ Em sex, 23 de ago de 2019 às 07:53, Lim Kai Wey escreveu: > Greetings, > > I would like to ask if anyone has a suggested way for creating a 3D object > which can be interacted with on Django. > Any suggestions are welcomed. > > Thanks

Re: Weird Database behavior (Can't access object from a view after directly saving it from inside another view)

2019-08-23 Thread mohamed habib
Wow that is interesting, thank you for this update. I will be reading more about this. On Thu, Aug 22, 2019 at 2:15 PM Ahmed Shahwan wrote: > I solved the problem. > > It's related to the atomic requests. I had "ATOMIC_REQUESTS": True in the > database settings and XPAY's service responded so fa

3D Object Interaction

2019-08-23 Thread Lim Kai Wey
Greetings, I would like to ask if anyone has a suggested way for creating a 3D object which can be interacted with on Django. Any suggestions are welcomed. Thanks in advance. Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Rest Franework

2019-08-23 Thread Andréas Kühne
Hi Soumen, You have asked this question (or variants of it) 3 times now. If you aren't satisfied with the solutions you have received already - try replying to the suggestions you already have received. I don't think you will get different answers by repeating the same question multiple times. Als

Re: form.is_valid() is always return false please help

2019-08-23 Thread Shubham Chauhan
On Fri, 23 Aug 2019, 02:50 Thomas Lockhart, wrote: > Post your form code please. > > - Tom > > On Aug 22, 2019, at 12:56 PM, Shubham Chauhan < > shubham.chauhan...@gmail.com> wrote: > > form.is_valid() is always return false please help > > -- > You received this message because you are subscribe

Django apphooks

2019-08-23 Thread Perceval Maturure
Dear Django users below is my django cms apphook, its showing the app on the drop down but it doesn't hook the application to a page. I have tried the below tutorial. i would be happy if one can share a working manual. from cms.app_base import CMSApp from cms.apphook_pool import apphook_pool fro