Re: ModuleNotFoundError: No module named :

2019-09-24 Thread Abu Yusuf
share your full project here. On Tue, Sep 24, 2019 at 10:43 PM MEGA NATHAN wrote: > > > Hi. > again i change and run but same problem coming > > > > *Regards* > Meganathan G > > > > On Tue, Sep 24, 2019 at 10:32 AM Abu Yusuf > wrote: > >> Error in admin.py. So same here in admin.py. >>

Re: Help for building recommendation system in django

2019-09-24 Thread TruZillah
try using aws... go to aws.com and sign-up for a free account and used the Amazon Personalize service... or your can google it and it will take you right there On Monday, September 23, 2019 at 11:48:12 PM UTC-4, Gabriel Araya Garcia wrote: > > Hi, What is an recommendation system ? I live in

Re: Help for building recommendation system in django

2019-09-24 Thread TruZillah
aws offers a good solution google Amazon Personalize... that will help you solve your problem... On Monday, September 23, 2019 at 11:36:32 PM UTC-4, Mahir Shah wrote: > > Hello , I am trying to build an recommendation system on books using > django framework but am not been able do it . Please

Why my replies won't work

2019-09-24 Thread TruZillah
i am trying to reply to people question but for some reason it won't go through so i am going to see if this post actually goes through -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: list records of another app in another app

2019-09-24 Thread Paul Barber
I was actually thinking of doing the same thing On Tuesday, September 24, 2019 at 3:10:46 PM UTC-4, Perceval Maturure wrote: > > > Hi awesome django users > i want to list model records of App1 in a detail view of App2 > any ideas? > Regards > > -- > *Perceval Maturure* > > *083 303 9423* > --

Virtual Environment error

2019-09-24 Thread yasar arafath Kajamydeen
Dear All, Actually i forget my virtual environment name. So when i run -- python manage.py runserver command its showing error like this . ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to

Re: how to use django pagination with sql query and not ORM

2019-09-24 Thread Deep Sukhwani
Have you tried using the *.query* on Django's QuerySet (documentation: [1]) For example, if my QuerySet is: *User.objects.filter(username__contains='alpha')* I can obtain the underlying raw SQL Query using: *print(User.objects.filter(username__contains='alpha').query)* *>>>

Re: convert python 3 to python2

2019-09-24 Thread Mike Dewhirst
I think the original question was around backwards conversion of 3.x code to 2.7. I don't know of course because all my efforts have been forwards but I believe the six module would be the easiest way backwards. And I imagine you would simply run your unit tests in 2.7 and use the six

Re: list records of another app in another app

2019-09-24 Thread Jani Tiainen
Hi. Just import models and use them? ti 24. syysk. 2019 klo 22.10 Perceval Maturure kirjoitti: > > Hi awesome django users > i want to list model records of App1 in a detail view of App2 > any ideas? > Regards > > -- > *Perceval Maturure* > > *083 303 9423* > > -- > You received this message

how to use django pagination with sql query and not ORM

2019-09-24 Thread leb dev
I now how to use django pagination with ORM django after filtering the required data and put in into *pagination div* *queryset_list = employee.objects.all()* *query=request.GET.get("q")* *if query:* *queryset_list=queryset_list.filter(* *

list records of another app in another app

2019-09-24 Thread Perceval Maturure
Hi awesome django users i want to list model records of App1 in a detail view of App2 any ideas? Regards -- *Perceval Maturure* *083 303 9423* -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: ModuleNotFoundError: No module named :

2019-09-24 Thread MEGA NATHAN
Hi. again i change and run but same problem coming *Regards* Meganathan G On Tue, Sep 24, 2019 at 10:32 AM Abu Yusuf wrote: > Error in admin.py. So same here in admin.py. > > Before starting a django project, try to understand the architecture of it > and the working flow of it. >

Re: Django developer server auto quit when iterate QuerySet in template

2019-09-24 Thread Deep Sukhwani
Possible to push the whole code to a Github repo so someone could check out and try locally - Couldn't really figure out anything that might be going wrong by looking at this much mode? Also, just out of curiosity, why are you using *Department.objects.filter()* instead of

django.contrib.auth: Confusion about AuthenticationForm.confirm_login_allowed

2019-09-24 Thread Christian Franke
Hello, I am a bit confused about the relation and separation of responsibilities between `AuthenticationForm.confirm_login_allowed` and `ModelBackend.user_can_authenticate`. When `AuthenticationForm` is used together with `ModelBackend`, we will never call

creating school year

2019-09-24 Thread Rain
i have a question how to create school year with start date and end date all transaction must under this year. Thanks.. -- 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

Django developer server auto quit when iterate QuerySet in template

2019-09-24 Thread Huy Bùi
Hello, Everytime i try to access a url, the Django developer server auto quit without any log about what happens. After debugging a little bit, i find out if i remove this block of code in the template file, i can access the web page normally: {% for d in departments %} {{ d.name

[no subject]

2019-09-24 Thread Avi gehlot
Yo put in admin.py Django.models import users But You put apptwo.models inport users This way ... On Tue, 24 Sep 2019 at 9:43 AM, Deep Sukhwani wrote: > Are you supposed to be using a virtualenv and you don't have that > activated? > > Can you run *pip freeze | grep -i django* and share the

Re: convert python 3 to python2

2019-09-24 Thread אורי
On Sat, Sep 21, 2019 at 8:32 PM Ankita Gupta wrote: > Not related to Django... > Then write to python-l...@python.org -- 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: convert python 3 to python2

2019-09-24 Thread Andréas Kühne
Yes of course - I think RedHat will be continuing to support a python 2 environment because they haven't updated their own internal infrastructure and also their distributions to python 3. However - using one of those is still not very smart. The problem is that all plugins have moved on. So

Re: convert python 3 to python2

2019-09-24 Thread Larry Martell
Ha! How about perl? ;-) On Tue, Sep 24, 2019 at 8:33 AM Nick Sarbicki wrote: > > I'm not convinced anyone could pay me enough to go back to Python 1... > > > On Tue, Sep 24, 2019 at 1:32 PM Larry Martell wrote: >> >> You can get anyone to do anything for enough money. >> >> On Tue, Sep 24, 2019

Re: convert python 3 to python2

2019-09-24 Thread Nick Sarbicki
I'm not convinced anyone could pay me enough to go back to Python 1... On Tue, Sep 24, 2019 at 1:32 PM Larry Martell wrote: > You can get anyone to do anything for enough money. > > On Tue, Sep 24, 2019 at 8:30 AM Deep Sukhwani > wrote: > > > > Thanks for the prompt reply. Did a quick cursory

Re: convert python 3 to python2

2019-09-24 Thread Larry Martell
You can get anyone to do anything for enough money. On Tue, Sep 24, 2019 at 8:30 AM Deep Sukhwani wrote: > > Thanks for the prompt reply. Did a quick cursory check with Anaconda, I don't > think Anaconda does it. In fact Anaconda has posted a few months ago about > Python 2's EOL (End of Life)

Re: convert python 3 to python2

2019-09-24 Thread Deep Sukhwani
Thanks for the prompt reply. Did a quick cursory check with Anaconda, I don't think Anaconda does it. In fact Anaconda has posted a few months ago about Python 2's EOL (End of Life) - https://www.anaconda.com/end-of-life-eol-for-python-2-7-is-coming-are-you-ready/ Also, just did a quick look at

Re: convert python 3 to python2

2019-09-24 Thread Larry Martell
Anaconda, Enthought, ActiveState, Red Hat and maybe others as well. Also large companies can do their own support. On Tue, Sep 24, 2019 at 8:11 AM Deep Sukhwani wrote: > > Wow, TIL there are companies selling support for Python 2? Never heard of it. > So basically we are saying these companies

Re: convert python 3 to python2

2019-09-24 Thread Deep Sukhwani
Wow, TIL there are companies selling support for Python 2? Never heard of it. So basically we are saying these companies will maintain there own version of Python programming language which will continue to be maintained as long as they have paid users for Python 2? I seriously doubt that. Or may

Re: convert python 3 to python2

2019-09-24 Thread Larry Martell
On Tue, Sep 24, 2019 at 4:15 AM Andréas Kühne wrote: > > Official access isn't denied - and python 2 will probably be available. The > problem is that you don't get any security fixes or any updates at all. That > in itself is a major problem. If someone is saying that you need to use > python

Re: request module

2019-09-24 Thread dandu sreenivasulu
Thanks Deep, i will raise on stackoverflow... On Tue, Sep 24, 2019 at 9:39 AM Deep Sukhwani wrote: > The right place for this would be "requests" community - > https://2.python-requests.org/en/master/community/support/#e-mail > > The best immediate course of action would be to post a question

Re: convert python 3 to python2

2019-09-24 Thread Andréas Kühne
Official access isn't denied - and python 2 will probably be available. The problem is that you don't get any security fixes or any updates at all. That in itself is a major problem. If someone is saying that you need to use python 2, I would strongly recommend them to not even think about it. All