Re: ModuleNotFoundError: No module named :

2019-09-23 Thread Abu Yusuf
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. Otherwise, you can't go long away. Best Wishes, On Tue, Sep 24, 2019 at 10:32 AM Abu Yusuf wrote: > In your views.py: > from .models import users

Re: ModuleNotFoundError: No module named :

2019-09-23 Thread Abu Yusuf
In your views.py: from .models import users That's it. On Tue, Sep 24, 2019 at 10:13 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 output? > > -- > Regards > Deep L Sukhwani >

Re: ModuleNotFoundError: No module named :

2019-09-23 Thread Deep Sukhwani
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 output? -- Regards Deep L Sukhwani On Tue, 24 Sep 2019 at 09:40, MEGA NATHAN wrote: > Hi. > > > i 'm meganathan from india i was doing django trining , > > And

Re: request module

2019-09-23 Thread Deep Sukhwani
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 on stackoverflow.com and tag the question with *python-requests* -- Regards Deep L Sukhwani On Mon, 23 Sep

Re: Help for building recommendation system in django

2019-09-23 Thread Gabriel Araya Garcia
Hi, What is an recommendation system ? I live in Chile, and I do not know what is that. Have you something done in this minute ? El mar., 24 sept. 2019 a las 0:35, Mahir Shah () escribió: > Hello , I am trying to build an recommendation system on books using > django framework but am not been

Help for building recommendation system in django

2019-09-23 Thread Mahir Shah
Hello , I am trying to build an recommendation system on books using django framework but am not been able do it . Please help me out with this -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: TemplateDoesNotExist

2019-09-23 Thread Manish Maurya
create a folder name as template in your django project and open your settings.py file in template in dir write "templates" On Mon, 23 Sep 2019 at 19:56, oba stephen wrote: > Try using "./base.html" > > I believe this should do it. > > On Mon, Sep 23, 2019, 1:40 PM yerri swamy > wrote: > >>

Re: Error while trying to connect latest Dango with MSSQL

2019-09-23 Thread Praveen Kumar
Please find blow the error I'm receiving Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\threading.py ", line

Django bootstrap calendar

2019-09-23 Thread Perceval Maturure
Is there anyone with a step by step procedure of doing this app in a Django 2.1 environment For newbies like some of us in Django Regards Perceval -- Sent from Gmail Mobile -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: TemplateDoesNotExist

2019-09-23 Thread Tosin Ayoola
Can you paste the section of your view code & Hw are you referencing your base.html is it directly in ur templates folder? On Sep 23, 2019 13:40, "yerri swamy" wrote: Hi guys, By using templates folder i am not getting what i am expecting and i am getting error 'Template Does Not

RE: TemplateDoesNotExist

2019-09-23 Thread laya
Hi , You should config the template settings: 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates')], Sent from Mail for Windows 10 From: yerri swamy Sent: Monday, September 23, 2019 4:11 PM To: Django users Subject: TemplateDoesNotExist Hi

Re: TemplateDoesNotExist

2019-09-23 Thread anilumarane
Give the html file current pathSent from my Samsung Galaxy smartphone. Original message From: oba stephen Date: 23/09/2019 19:55 (GMT+05:30) To: django-users@googlegroups.com Subject: Re: TemplateDoesNotExist Try using "./base.html"I believe this should do it. On Mon, Sep

Re: Docker performance on Mac OS X

2019-09-23 Thread Chris Wedgwood
Hi Jason Thank you for your response. I misdaignosed my issue. It actually had nothing to do with Docker and instead was a slow performing form in the django admin that had a widget referencing a foreign key which was taking forever to build. I fixed it with raw_id_fields, so am now back on

Re: TemplateDoesNotExist

2019-09-23 Thread oba stephen
Try using "./base.html" I believe this should do it. On Mon, Sep 23, 2019, 1:40 PM yerri swamy wrote: > Hi guys, > > By using templates folder i am not getting what i am expecting and > i am getting error 'Template Does Not Exist' ,and also defaulty it's not > coming templates variable

Re: Transaction.atomic()

2019-09-23 Thread Jani Tiainen
And TL;DR; versio. Code which is wrapped within atomic transaction will guarantee that if code breaks changes are rolled back. ma 23. syysk. 2019 klo 15.42 Aryan Patel kirjoitti: > Hi colleagues, > > I want to understand if transaction.atomic() in django guarantees that the > client is getting

Re: Transaction.atomic()

2019-09-23 Thread Jason
no, atomic transactions are just for the database. It has nothing to do with a client, just the integrity of a data commit. -- 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,

Re: TemplateDoesNotExist

2019-09-23 Thread Desh Deepak
Show me your views.py file. On Mon, 23 Sep 2019, 18:48 Abu Yusuf, wrote: > 1. ensure you have a folder templates inside static folder > 2. ensure you filled up templates_dir: 'templates' > 3. ensure 'base.html' exists inside templates folder > > On Mon, Sep 23, 2019 at 6:40 PM yerri swamy >

Re: TemplateDoesNotExist

2019-09-23 Thread Abu Yusuf
1. ensure you have a folder templates inside static folder 2. ensure you filled up templates_dir: 'templates' 3. ensure 'base.html' exists inside templates folder On Mon, Sep 23, 2019 at 6:40 PM yerri swamy wrote: > Hi guys, > > By using templates folder i am not getting what i am

Transaction.atomic()

2019-09-23 Thread Aryan Patel
Hi colleagues, I want to understand if transaction.atomic() in django guarantees that the client is getting status what the django is sending? This question is just for discussion whether the django builds a pipeline with the client and if the network broke down while the django is sending

Re: how to use generic_inlineformset_factory ?

2019-09-23 Thread MohammadReza Kasaie Sharifi
I want ti open the link but it was expired On Monday, December 8, 2008 at 7:16:49 AM UTC+3:30, Marco Louro wrote: > > Hi, > > I'm trying to use generic_inlineformset_factory. There are no docs for > it except a Generic Relations Model example @ >

request module

2019-09-23 Thread dandu sreenivasulu
Hi All, can someone please help on below request url = 'http://abc.com/' response = requests.get(url)# url1 = response.url # http://xyz.com --> when we access abc.com url it will redirect to xyz.com url and there we have to entere username and password print(url1) #xyz.com

Re: Docker performance on Mac OS X

2019-09-23 Thread Jason
What kind of hardware are you working with? What resources do you have allocated to Docker. Are you including tens of thousands of files in volume mounts? We use docker extensively at work, and I've found it helps to have at least half of your machine's hardware available to docker. My 2018

Re: Class Based View All Methods

2019-09-23 Thread Abu Yusuf
Most Welcome On Mon, Sep 23, 2019 at 4:03 PM Shakil Ahmmed wrote: > Thank You Bhaia <3 > > On Mon, Sep 23, 2019 at 4:02 PM Abu Yusuf > wrote: > >> yes, of course. see here: >> https://www.django-rest-framework.org/topics/html-and-forms/ >> >> >> On Mon, Sep 23, 2019 at 3:55 PM Shakil Ahmmed

Re: Class Based View All Methods

2019-09-23 Thread Shakil Ahmmed
Thank You Bhaia <3 On Mon, Sep 23, 2019 at 4:02 PM Abu Yusuf wrote: > yes, of course. see here: > https://www.django-rest-framework.org/topics/html-and-forms/ > > > On Mon, Sep 23, 2019 at 3:55 PM Shakil Ahmmed > wrote: > >> Can I Return Html Template From APIView ? >> >> On Monday, September

Re: Class Based View All Methods

2019-09-23 Thread Abu Yusuf
yes, of course. see here: https://www.django-rest-framework.org/topics/html-and-forms/ On Mon, Sep 23, 2019 at 3:55 PM Shakil Ahmmed wrote: > Can I Return Html Template From APIView ? > > On Monday, September 23, 2019 at 12:12:54 PM UTC+6, Shakil Ahmmed wrote: >> >> How Can i Use Those Methods

Re: Class Based View All Methods

2019-09-23 Thread Shakil Ahmmed
Can I Return Html Template From APIView ? On Monday, September 23, 2019 at 12:12:54 PM UTC+6, Shakil Ahmmed wrote: > > How Can i Use Those Methods In One Class Base View ['get', 'post', 'put', > 'patch', 'delete', 'head', 'options', 'trace'] > > Example: > > from django.views import View > >

Re: Class Based View All Methods

2019-09-23 Thread Shakil Ahmmed
Please Provide Me Some Code Example On Mon, Sep 23, 2019 at 3:47 PM laya Mahmoudi wrote: > Mixinviews can works for your purpose > > در تاریخ دوشنبه ۲۳ سپتامبر ۲۰۱۹،‏ ۱۱:۲۵ Shakil Ahmmed < > shakilfci...@gmail.com> نوشت: > >> Please Can You Give me some Exapmle? >> >> On Mon, Sep 23, 2019, 1:39

Re: Class Based View All Methods

2019-09-23 Thread Abu Yusuf
You can do that using ApiView also: details: https://www.django-rest-framework.org/tutorial/3-class-based-views/ class SnippetDetail(APIView): """ Retrieve, update or delete a snippet instance. """ def get_object(self, pk): try: return

Re: Class Based View All Methods

2019-09-23 Thread laya Mahmoudi
Mixinviews can works for your purpose در تاریخ دوشنبه ۲۳ سپتامبر ۲۰۱۹،‏ ۱۱:۲۵ Shakil Ahmmed < shakilfci...@gmail.com> نوشت: > Please Can You Give me some Exapmle? > > On Mon, Sep 23, 2019, 1:39 PM Abu Yusuf > wrote: > >> Check this: >>

Re: Class Based View All Methods

2019-09-23 Thread Shakil Ahmmed
Please Can You Give me some Exapmle? On Mon, Sep 23, 2019, 1:39 PM Abu Yusuf wrote: > Check this: > https://docs.djangoproject.com/en/2.2/ref/class-based-views/flattened-index/#formview > > On Mon, Sep 23, 2019 at 12:13 PM Shakil Ahmmed > wrote: > >> How Can i Use Those Methods In One Class

Re: Class Based View All Methods

2019-09-23 Thread Abu Yusuf
Check this: https://docs.djangoproject.com/en/2.2/ref/class-based-views/flattened-index/#formview On Mon, Sep 23, 2019 at 12:13 PM Shakil Ahmmed wrote: > How Can i Use Those Methods In One Class Base View ['get', 'post', 'put', > 'patch', 'delete', 'head', 'options', 'trace'] > > Example: > >

Django Multiple File Uploads for latest versions

2019-09-23 Thread Abu Yusuf
Here i have created a repo Django Multiple File Uploads for latest versions(>1.9) Check this and let me know if there have any issues. Hit star if this helps you. https://github.com/Revel109/django-multiupload-lts -- You received this message because you are subscribed to the Google Groups

Docker performance on Mac OS X

2019-09-23 Thread Chris Wedgwood
Hi All I generally use the Django Cookiecutter project to start my projects and have started using *docker* for my local development. However I have started to get some really awful performance with pageloads taking 30-40 seconds. I am know considering stopping using docker entirely. Has anyone

Class Based View All Methods

2019-09-23 Thread Shakil Ahmmed
How Can i Use Those Methods In One Class Base View ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace'] Example: from django.views import View class Home(View): def get(self, request, *args, **kwargs): return HttpResponse('Hello, World!') def post(self,

Re: convert python 3 to python2

2019-09-23 Thread Shakil Ahmmed
How Can I Use ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace'] in One Class On Sun, Sep 22, 2019 at 4:14 PM Ankita Gupta wrote: > > > On Saturday, September 21, 2019 at 11:07:21 PM UTC+5:30, Sipum wrote: >> >> Hi Ankita, >> >> In coming January, python 2 is going to retire.