Re: How to generate plot

2024-09-15 Thread Vishesh Mangla
Use matplotlib and numpy, ask chatgpt On Mon, 16 Sept 2024, 09:40 Nilesh Mishra, wrote: > Y= a+bX2 > > a and b are constant > > Where X is a variable and user input in the range 0 to 400 > > On Sun, Sep 15, 2024, 19:23 Nilesh Mishra > wrote: > >> It's done thanks >> >> On Sun, Sep 15, 2024, 08:

Re: Select Boxes and Database

2023-12-02 Thread Vishesh Mangla
Hi Mike , You can do the following using query parameters. Create a separate endpoint /getcities?city=... . You send the state and get array of cities. This endpoint would give you a json array of cities. On selection of state on the frontend, your event listener would make api call to above endpoi

Re: Django Rest framework

2023-11-13 Thread Vishesh Mangla
Use selenium On Mon, 13 Nov, 2023, 18:48 Vishesh Mangla, wrote: > Don't use postman for gui based login > > On Mon, 13 Nov, 2023, 18:25 Denny (Python developer), < > denniskinan...@gmail.com> wrote: > >> i think the the error is from vercel itself assist

Re: Django Rest framework

2023-11-13 Thread Vishesh Mangla
Don't use postman for gui based login On Mon, 13 Nov, 2023, 18:25 Denny (Python developer), < denniskinan...@gmail.com> wrote: > i think the the error is from vercel itself assist me my tech guys > > On Monday, November 13, 2023 at 3:54:29 PM UTC+3 Denny (Python developer) > wrote: > >> i hosted

Re: hello forks.i have in my sitting file :

2023-08-28 Thread Vishesh Mangla
Just move forward with your code , dint give attention to red squiggly at this stage On Mon, 28 Aug, 2023, 20:08 Vishesh Mangla, wrote: > Edtudiant is French not English > > On Mon, 28 Aug, 2023, 19:45 Abdoulaye SENE, > wrote: > >> i don't understand >> &g

Re: hello forks.i have in my sitting file :

2023-08-28 Thread Vishesh Mangla
Edtudiant is French not English On Mon, 28 Aug, 2023, 19:45 Abdoulaye SENE, wrote: > i don't understand > > > Le lun. 28 août 2023 à 14:09, Vishesh Mangla > a écrit : > >> That's just a linting error, ignore it >> >> On Mon, 28 Aug,

Re: hello forks.i have in my sitting file :

2023-08-28 Thread Vishesh Mangla
That's just a linting error, ignore it On Mon, 28 Aug, 2023, 19:35 Abdoulaye SENE, wrote: > [image: Cap0.PNG] > but when i make python manage.py migrate, i only see [image: Capt.PNG] > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To u

Re: Internship and job in python and Django related

2023-07-21 Thread Vishesh Mangla
You can use fixtures to store json data to your db but it should be in a specific format based on your model. On Fri, 21 Jul, 2023, 22:44 Emmanuel Seth, wrote: > Svp parlez en français 🙏🙏🙏 > > > Le ven. 21 juil. 2023 à 15:14, Opeyemi Ajayi < > opeyemichristiana.aj...@gmail.com> a écrit : > >> I

Re: Re:

2023-07-19 Thread Vishesh Mangla
e julho de 2023 13:48 >> *Para:* django-users@googlegroups.com >> *Assunto:* Re: >> >> Hey I'm a fresh graduate from BS IT. And I'm a MERN Stack developer >> learning Django for the web. What do u think? >> >> On Tue, Jul 18, 2023, 9:08 PM Asim Sulehria

Re:

2023-07-18 Thread Vishesh Mangla
Whats the CTC you are offering? On Tue, 18 Jul, 2023, 21:38 Asim Sulehria, wrote: > Do you have it or not ? > We are just hiring Django developers as fresh graduates ! > > > On Tue, Jul 18, 2023 at 8:50 PM Vishesh Mangla > wrote: > >> Degree is not sufficient. Memo

Re:

2023-07-18 Thread Vishesh Mangla
Degree is not sufficient. Memorizing 250 DSA questions is also a requirement. On Tue, 18 Jul, 2023, 21:18 Asim Sulehria, wrote: > For getting a Job into industry you need a proper degree ! > Do you have it or not? > > On Tue, Jul 18, 2023 at 8:36 PM Vishesh Mangla > wrote:

Re:

2023-07-18 Thread Vishesh Mangla
No degree teaches django or even web development. On Tue, Jul 18, 2023 at 8:50 PM Asim Sulehria wrote: > Do you have a bachelor's degree in relevant field like Computer Science?/ > Software Engineering?/ Data Science? > > On Tue, Jul 18, 2023 at 8:16 PM utibe solomon > wrote: > >> My number is

Re: Guidepath to learn django

2023-06-27 Thread Vishesh Mangla
There is a course by Corey Schauffer through which I started and rest the libera #django channel helped. On Tue, 27 Jun, 2023, 17:35 lewis machilika, wrote: > > Did you already tried the Django official documentation? > > Regards, > Lewis > On Tue, 27 Jun 2023 at 2:02 PM, Dilmurod Dilmurod < > d

Re: Slow Performance of Django Web App

2023-06-13 Thread Vishesh Mangla
One important question, what webserver are you using? On Wed, Jun 14, 2023 at 10:34 AM Shaheed Haque wrote: > Have you tried using > https://django-debug-toolbar.readthedocs.io/en/latest/? It can be a > little fiddling about with, but it's time based profiling support has been > invaluable in tr

Re: Slow Performance of Django Web App

2023-06-13 Thread Vishesh Mangla
https://medium.com/kami-people/profiling-in-django-9f4d403a394f On Tue, Jun 13, 2023 at 11:44 PM Vishesh Mangla wrote: > Try profiling your django code > > On Tue, 13 Jun, 2023, 23:19 Nisha Jose, wrote: > >> Try to check any N+1 issue available in the code. >> >>

Re: Slow Performance of Django Web App

2023-06-13 Thread Vishesh Mangla
Try profiling your django code On Tue, 13 Jun, 2023, 23:19 Nisha Jose, wrote: > Try to check any N+1 issue available in the code. > > > On Mon, Jun 12, 2023 at 9:46 AM Vishesh Mangla > wrote: > >> Try cdn, and use Statics based on screen size >> >> On Mon

Re: Translating a Django website

2023-06-12 Thread Vishesh Mangla
Why don't you use Google translate api? On Mon, 12 Jun, 2023, 14:36 אורי, wrote: > Hi, > > I have a website in English and Hebrew which I want to translate into > French. The website has about 3 or 4 .po files in each language, which > should be translated. But the translators I talked to want t

Re: Slow Performance of Django Web App

2023-06-11 Thread Vishesh Mangla
Try cdn, and use Statics based on screen size On Mon, 12 Jun, 2023, 11:14 Vishesh Mangla, wrote: > Lmao > > On Mon, 12 Jun, 2023, 10:54 Kunal Mittal, wrote: > >> I have read various docs on performance optimization, but still not >> getting what's taking to re

Re: Slow Performance of Django Web App

2023-06-11 Thread Vishesh Mangla
Lmao On Mon, 12 Jun, 2023, 10:54 Kunal Mittal, wrote: > I have read various docs on performance optimization, but still not > getting what's taking to render templates and what's the bottleneck when > cache get cleared, I takes around 12 hours for application to run smoothly > after that event.

Re: I want help from senior python/django developer to create one django assignment project.

2023-06-05 Thread Vishesh Mangla
Ya, who ll open up Linux for him 😑 On Mon, 5 Jun, 2023, 22:43 Lakshyaraj Dash, wrote: > Bro please send in pdf format so that it will be possible to open in mobile > > On Mon, 5 Jun, 2023, 22:35 AKHIL KORE, wrote: > >> Hi django developer group. >> >> I'm from india. I got one django assignmen

Re: JOB | Lead Platform Engineer (Singapore/London)

2023-05-26 Thread Vishesh Mangla
Please be careful whilst looking at the random jobs in this group. Afaik, these are unverified. If they require you to relocate then think 10 times before taking any action. On Sat, May 27, 2023 at 1:32 AM Sakshi wrote: > Hi I have around 3 years of experience with python.can you consider my > p

Re: Tokenized Authentication for subdomains

2023-05-26 Thread Vishesh Mangla
https://stackoverflow.com/a/62782197/4213362 On Thu, May 25, 2023 at 7:35 AM André Lewis wrote: > Hi, > > I'm currently working on a project with subdomains, and I wanted to > authenticate the user across the site, regardless of the url. I did some > digging and found some ideas for implementing

Re: Tokenized Authentication for subdomains

2023-05-24 Thread Vishesh Mangla
use nginx as reverse proxy On Thu, 25 May, 2023, 07:35 André Lewis, wrote: > Hi, > > I'm currently working on a project with subdomains, and I wanted to > authenticate the user across the site, regardless of the url. I did some > digging and found some ideas for implementing Oauth/openID connect

Re: upload folder

2023-05-19 Thread Vishesh Mangla
https://api.video/blog/tutorials/uploading-large-files-with-javascript/ On Fri, 19 May, 2023, 18:29 Karuppasamy T, wrote: > how to upload folder and sub directory and including sub files maximum > 5gb please help me . > > -- > You received this message because you are subscribed to the Google Gr

Re: django smtp.gmail error

2023-05-17 Thread Vishesh Mangla
https://medium.com/@manglavishesh64/using-gmail-smtp-with-3rd-party-apps-be3e15f4a7fc On Wed, 17 May, 2023, 19:50 Chelsea Fan, wrote: > how can I find your medium stories? > > On Wed, May 17, 2023 at 7:09 PM Vishesh Mangla > wrote: > >> You can't use SMTP with Google

Re: django smtp.gmail error

2023-05-17 Thread Vishesh Mangla
You can't use SMTP with Google. You need to use oauth through Google cloud platform. Actually there is one way to use SMTP with Google to login through third party apps. Check out my stories on medium. I had written one for a solution. On Wed, 17 May, 2023, 19:36 Vishesh Mangla, wrote:

Re: django smtp.gmail error

2023-05-17 Thread Vishesh Mangla
Are you logging through Gmail? On Wed, 17 May, 2023, 19:35 Chelsea Fan, wrote: > I deleted all passwords and thhen created new password but nothig was > happen > > On Wed, May 17, 2023 at 6:54 PM Lakshyaraj Dash < > dashlakshyaraj2...@gmail.com> wrote: > >> First verify if the email through whic

Re:

2023-05-11 Thread Vishesh Mangla
Use request module to make a request from django if you meant that otherwise your question is unclear On Fri, 12 May, 2023, 10:21 Karthik V A, wrote: > Hello friends, Is there any inbuilt function in django for API. Without > using REST framework and request. > > -- > You received this message b

Re: PDF generation with xhtml2Pdf in Django

2023-05-11 Thread Vishesh Mangla
Abdulrahman Abbas wrote: > >> Send the error details >> >> On Thu, May 11, 2023, 14:41 Michael Edet wrote: >> >>> How??? >>> >>> On Thu, 11 May 2023, 14:25 Vishesh Mangla, wrote: >>> >>>> Try weasyprint >>>> >

Re: PDF generation with xhtml2Pdf in Django

2023-05-11 Thread Vishesh Mangla
Try weasyprint On Thu, 11 May, 2023, 18:38 Oduwa Imade, wrote: > Hello Guys! I am trying to generate a Pdf doc(reading data from a > database) on Django with xhtml2pdf library. but i encounter this error when > i hit the 'Create PDF' button: > > ValueError at /RecruitmentApp/createcvpdf > with

Re: testing newbie - help requested: app works, tests give errors

2023-05-10 Thread Vishesh Mangla
If I understood the error right. On Wed, May 10, 2023 at 5:47 PM Vishesh Mangla wrote: > Probably this would help: > https://stackoverflow.com/questions/8609192/what-is-the-difference-between-null-true-and-blank-true-in-django > > On Wed, May 10, 2023 at 5:45 PM 'Bob Aalsma&

Re: testing newbie - help requested: app works, tests give errors

2023-05-10 Thread Vishesh Mangla
nswer but I have no idea what you > mean. > > On Wednesday, May 10, 2023 at 2:00:51 PM UTC+2 Vishesh Mangla wrote: > >> False or True check for yourself. >> >> On Wed, 10 May, 2023, 17:29 Vishesh Mangla, wrote: >> >>> It looks like you are passing a nu

Re: testing newbie - help requested: app works, tests give errors

2023-05-10 Thread Vishesh Mangla
False or True check for yourself. On Wed, 10 May, 2023, 17:29 Vishesh Mangla, wrote: > It looks like you are passing a null but null=False is not set > > On Wed, 10 May, 2023, 17:27 'Bob Aalsma' via Django users, < > django-users@googlegroups.com> wrote: > >&

Re: testing newbie - help requested: app works, tests give errors

2023-05-10 Thread Vishesh Mangla
It looks like you are passing a null but null=False is not set On Wed, 10 May, 2023, 17:27 'Bob Aalsma' via Django users, < django-users@googlegroups.com> wrote: > I'm trying to test a django-admin command and don't understand why the > tests give errors on the code while the code works as expect

Re: I have a problem with visual studio code

2023-05-02 Thread Vishesh Mangla
Also ask for help on web.libera.chat website.there is a python channel On Tue, 2 May, 2023, 22:29 Vishesh Mangla, wrote: > Oh looks like you are using visual studio python. Dont use that and remove > the python path and download python from official website > > On Tue, 2 May, 2023

Re: I have a problem with visual studio code

2023-05-02 Thread Vishesh Mangla
roject should be delivered > > On Tue, 2 May 2023, 7:55 pm Vishesh Mangla, > wrote: > >> Looks like issue is with pillow >> >> On Tue, 2 May, 2023, 22:17 Byansi Samuel, >> wrote: >> >>> Which version of python do you use? >>> >>> It&

Re: I have a problem with visual studio code

2023-05-02 Thread Vishesh Mangla
Looks like issue is with pillow On Tue, 2 May, 2023, 22:17 Byansi Samuel, wrote: > Which version of python do you use? > > It's because of python. Change the version of your python from anyone you > have been using and install > > Python 3.10, it will work fine and successful > > On Tue, May 2,

Re: How to link different apps into one main app

2023-03-24 Thread Vishesh Mangla
Add your app name in settings.py in INSTALLED_APPS On Fri, 24 Mar, 2023, 18:58 Chandresh . T, wrote: > I'm a new learner of Django, and I want to do a project, In the main app a > form will be given and if the person tells that he belongs to the frontend > or backend developing group he will be

Re: Invite to join WhatsApp group

2022-08-05 Thread Vishesh Mangla
This group is not for promoting your paid service. It's where volunteers help each other.So stop advertising your classes here. On Sat, 6 Aug, 2022, 02:38 Dylan Reinhold, wrote: > In the past 2 weeks, I have seen this same message sent over 4 times. > > We get it, you have a whatsapp group. > >

Re: LogIn Class Based View

2022-05-26 Thread Vishesh Mangla
https://ccbv.co.uk/projects/Django/4.0/django.contrib.auth.views/LoginView/ https://openclassrooms.com/en/courses/7107341-intermediate-django/7263527-create-a-login-page-with-class-based-views https://stackoverflow.com/questions/56761409/how-to-make-a-login-view-for-django-custom-user On Fri, May

Re: LogIn Class Based View

2022-05-26 Thread Vishesh Mangla
Sorry, on looking again I realized that CBV already does this. https://ccbv.co.uk/projects/Django/4.0/django.contrib.auth.views/LoginView/ https://openclassrooms.com/en/courses/7107341-intermediate-django/7263527-create-a-login-page-with-class-based-views https://stackoverflow.com/questions/56761

Re: LogIn Class Based View

2022-05-26 Thread Vishesh Mangla
Vishesh Mangla wrote: > I think it's good, function based views offer you more flexibility. If you > are not liking your code it's because your function should be split up into > smaller functions, or use a class without it being a view. > > On Fri, 27 May 2022, 01:07

Re: LogIn Class Based View

2022-05-26 Thread Vishesh Mangla
I think it's good, function based views offer you more flexibility. If you are not liking your code it's because your function should be split up into smaller functions, or use a class without it being a view. On Fri, 27 May 2022, 01:07 'dtdave' via Django users, < django-users@googlegroups.com> w

Re: Class based views with forms

2022-04-28 Thread Vishesh Mangla
Iommi forms On Thu, 28 Apr 2022, 23:00 Ryan Nowakowski, wrote: > You're right, it's not very clear how to have a single class-based view > handle both displaying details and submitting a form. This is a > fantastic site that shows how each class based view is set up > inheritance-wise: https://

Re: SMTP Authentification error

2022-04-27 Thread Vishesh Mangla
I meant Gmail api.I was also stuck with Gmail.Also may 31 onwards Gmail will block all third party apps which simply login with email and password. On Thu, 28 Apr 2022, 11:02 Vishesh Mangla, wrote: > > On Thu, 28 Apr 2022, 11:02 Vishesh Mangla, > wrote: > >> Use Google api

Re: SMTP Authentification error

2022-04-27 Thread Vishesh Mangla
On Thu, 28 Apr 2022, 11:02 Vishesh Mangla, wrote: > Use Google api. > > On Thu, 28 Apr 2022, 10:29 'Delvin Alexander' via Django users, < > django-users@googlegroups.com> wrote: > >> okay i did both but now i am getting this error. Any clue on why? >&g

Re: SMTP Authentification error

2022-04-27 Thread Vishesh Mangla
Use Google api. On Thu, 28 Apr 2022, 10:29 'Delvin Alexander' via Django users, < django-users@googlegroups.com> wrote: > okay i did both but now i am getting this error. Any clue on why? > > *SMTPSenderRefused at /password-reset/* > > > *(530, b'5.7.0 Authentication Required. Learn more at\n5.7.

Re: Download html pages as pdf using headless Chrome

2022-01-29 Thread Vishesh Mangla
nvert it to pdf > > On Sat, Jan 29, 2022 at 9:31 PM Vishesh Mangla > wrote: > >> Get the link and cookies from the webdriver and put that in requests.get >> using request library to download the html on the page. >> >> On Sat, 29 Jan 2022, 21:29 Vishesh Mangla, &g

Re: Download html pages as pdf using headless Chrome

2022-01-29 Thread Vishesh Mangla
Get the link and cookies from the webdriver and put that in requests.get using request library to download the html on the page. On Sat, 29 Jan 2022, 21:29 Vishesh Mangla, wrote: > Use requests for that . > > On Sat, 29 Jan 2022, 21:28 Aadil Rashid, wrote: > >> Hello Dja

Re: Download html pages as pdf using headless Chrome

2022-01-29 Thread Vishesh Mangla
Use requests for that . On Sat, 29 Jan 2022, 21:28 Aadil Rashid, wrote: > Hello Django Family, I came across the problem of downloading HTML pages > as pdf using headless chrome, Can anybody here who could please let me know > how can I do it or any good resource to follow, it would be appreciab

Re: Django works with PDF

2022-01-20 Thread Vishesh Mangla
PyPDF2 On Thu, 20 Jan 2022, 19:46 Amor Zamora, wrote: > I have 2 problems working with pdf in django. > 1. I need a tool, function or library that allows me to open a pdf and > read the metadata, to get its 'creator and producer' there, but I have to > do this, not with python, because to show i

Re: I need orientation on what to do and how to do it (procedure)

2021-12-16 Thread Vishesh Mangla
https://stackoverflow.com/a/2218134/4213362 On Thu, Dec 16, 2021 at 9:56 PM addani Raghavender < addaniraghaven...@gmail.com> wrote: > No not that much > > On Thu, 16 Dec, 2021, 7:43 am Amor Zamora, wrote: > >> >> Can you help me? >> I need to obtain the country of where the users access from th

Re: using .annotate on a queryset and output field is a result of function

2021-06-28 Thread VISHESH MANGLA
:06, Nikeet NA wrote: > >> You can do it like this : >> >> class TransactionEntry(models.Manager): >>def get_total_prices(self): >> return >> self.queryset().defer("users").annotate.(total_price=F("num_shares")*F(&q

Re: 🚨[URGENT] - 😥 Scrape Youtube Channel Email | Bypass Captcha 👀

2021-06-21 Thread VISHESH MANGLA
Use selenium On Sun, Jun 20, 2021, 06:29 Vrushang Desai wrote: > Hi guys, > *I'm trying to bypass youtube captcha & download email of the channel > owner.* > > I would really like to know how can one actually solve it? > > As I'm facing issues with youtube, > > *Where captcha disappears (Even if

Re: using .annotate on a queryset and output field is a result of function

2021-06-17 Thread VISHESH MANGLA
ers").annotate(total_price=F("num_shares")*F("price_per_share")).values('total_price') > On Thursday, 17 June 2021 at 03:23:01 UTC+5:30 VISHESH MANGLA wrote: > >> Hello, >> >> I wanted to know that how for the model below, how can I get a queryset

using .annotate on a queryset and output field is a result of function

2021-06-16 Thread VISHESH MANGLA
Hello, I wanted to know that how for the model below, how can I get a queryset with all the fields excluding the `user` and including the output of get_output_field? Please avoid hardcoding. One way is `TransactionEntry .objects.defer("users").annotate(total_price=F("num_shares")*F("price_p

no info on extra fields in the modelformset docs

2021-06-14 Thread VISHESH MANGLA
Hello, I 'm trying to use a modelformset with extra form fields but the docs say nothing about it. The initial data corresponding to the model fields gets loaded. I 'm stuck on this view(posted at the end) from previous 4 days, please help someone. The extra field is ` print_report_check`.

Re: Initial data doesn't go complelely in the modelformset

2021-06-13 Thread VISHESH MANGLA
= True def save(self, commit=True): logger.info(" Method not meant to save anything ") pass On Monday, June 14, 2021 at 12:09:49 AM UTC+5:30 VISHESH MANGLA wrote: > in line 38 i have that print statement, it's output is at the top , I dont > know why that

Initial data doesn't go complelely in the modelformset

2021-06-13 Thread VISHESH MANGLA
in line 38 i have that print statement, it's output is at the top , I dont know why that initial data is not going into that model formset. actually one data the PAN_ID actually went into the modelform, but the checkbox's "checked" didnt. You can see the html of the formset and the checkbox fie

Re: Module "django.core.cache.backends.memcached" does not define a "PyMemcacheCache" attribute/class

2021-06-11 Thread VISHESH MANGLA
> > Also, make sure you are using the docs for the correct version of django: > For example: > https://docs.djangoproject.com/en/3.0/topics/cache/ > > instead of: > > https://docs.djangoproject.com/en/3.2/topics/cache/ > > On Fri, Jun 11, 2021 at 4:20 PM VISHESH M

Module "django.core.cache.backends.memcached" does not define a "PyMemcacheCache" attribute/class

2021-06-11 Thread VISHESH MANGLA
Hello, Please help with the following error settings.py CACHES = { "default": { 'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache', 'LOCATION': '127.0.0.1:11211' } } #CACHE_MIDDLEWARE_ALIAS = "teut_cache" #CACHE_MIDDLEWARE_SECONDS = 500 #CACHE_MIDDLEWAR

Re: Form errors in ListFormsetView created by adding methods to a ListView.

2021-06-11 Thread VISHESH MANGLA
Sorry , I should have posted the template well, the error is, hmm, suppose you are at page 1 , now you clicked next and you got to page 2 and the `post` method is hit. It will get page number as 2. But for formset , the initial data will have to be compared with page "1" s data not "2". I

Form errors in ListFormsetView created by adding methods to a ListView.

2021-06-11 Thread VISHESH MANGLA
Hello, I am consistently getting this bizarre error and formset_invalid is getting triggered. I just tried to make a generic ListFormSetView. [11/Jun/2021 12:48:24] "GET /adminuser/print-report/?page=1 HTTP/1.1" 200 5244 [{'PAN_ID': ['User with this Pan ID already exists.']}] [11/Jun/2021 12:5

django admin site password changed every time user's attributes are changed

2021-01-10 Thread Vishesh Mangla
https://dpaste.org/bN7d Please see code at dpaste. I 'm trying to modify my admin site so that the admin can create new accounts there. After clicking save , to whatever email address which the admin has entered an email would bbe sent with a random password. It works perfectly but when I try

Re: UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread Vishesh Mangla
AccountManager() > > USERNAME_FIELD = 'email' > REQUIRED_FIELDS = ['shop_name', 'contact', 'is_staff'] > > def __str__(self): > return str(self.shop_name) > > > See if that helps you out.

Re: UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread Vishesh Mangla
in the dpaste s. On Saturday, January 9, 2021 at 7:11:23 PM UTC+5:30 Amitesh Sahay wrote: > Could you please paste your models.py > > Sent from Yahoo Mail on Android > <https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers

Re: UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread Vishesh Mangla
y, January 9, 2021 at 6:38:56 PM UTC+5:30 Vishesh Mangla wrote: > Hi, please help me create this UserManager child class. I 'm stuck up on > this. I also need to divide my users into three groups. > For this I extended the migrations file. https://dpaste.org/9VSd. But > runnin

Re: UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread Vishesh Mangla
hanks in advance. On Saturday, January 9, 2021 at 6:35:34 PM UTC+5:30 Vishesh Mangla wrote: > https://dpaste.org/Zz5Z > > > (venv) PS C:\Users\Dell\OneDrive\Desktop\djangodev\mass> python manage.py > createsuperuser > PAN ID: 6785 > Email: s@g > Error: Enter a

UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread Vishesh Mangla
https://dpaste.org/Zz5Z (venv) PS C:\Users\Dell\OneDrive\Desktop\djangodev\mass> python manage.py createsuperuser PAN ID: 6785 Email: s@g Error: Enter a valid email address. Email: s...@gmail.com Name: fjghg Type: fg Error: Value 'fg' is not a valid choice. Type: ADM Holding: 568 Password: Pass

Re: Exception Type: SuspiciousOperation

2021-01-01 Thread Vishesh Mangla
The error was related to data. The key wasn't in the data. On Fri, Jan 1, 2021 at 2:07 AM Vishesh Mangla wrote: > I deleted the db and ran the migrations again. > the actual error is this. https://dpaste.org/7vb3 > > On Friday, January 1, 2021 at 1:58:17 AM UTC+5:30 Vis

Re: Exception Type: SuspiciousOperation

2020-12-31 Thread Vishesh Mangla
I deleted the db and ran the migrations again. the actual error is this. https://dpaste.org/7vb3 On Friday, January 1, 2021 at 1:58:17 AM UTC+5:30 Vishesh Mangla wrote: > Hi, I am facing this error and 'm stuck on it from quite a lot of time. > The error logs: https://dpaste.co

Exception Type: SuspiciousOperation

2020-12-31 Thread Vishesh Mangla
Hi, I am facing this error and 'm stuck on it from quite a lot of time. The error logs: https://dpaste.com/AVG628T9N My code: https://dpaste.org/dSMc I have used : https://pypi.org/project/django-postgres-extra/ Any help is appreciated, Thanks -- You received this message because you are subsc

RE: Data Science Guide

2020-08-28 Thread Vishesh Mangla
https://www.youtube.com/watch?v=yzIMircGU5I&list=PL5-da3qGB5ICCsgW1MxlZ0Hq8LL5U3u9y Sent from Mail for Windows 10 From: Emmanuel Oppong NtiamoahSent: 28 August 2020 21:05To: django-users@googlegroups.comSubject: Data Science Guide Hello friends i have learnt Python for a while now and i want to sta

RE: material

2020-08-28 Thread Vishesh Mangla
https://www.youtube.com/watch?v=UmljXZIypDc Sent from Mail for Windows 10 From: sakshi jainSent: 28 August 2020 21:04To: django-users@googlegroups.comSubject: Re: material youtube vedios online On Fri, Aug 28, 2020, 19:23 السعيد حاجي سعيد wrote:Hello and good morning,

RE: HTML Snippets instead of JSON-API

2020-08-28 Thread Vishesh Mangla
You can use Django and react with the help of webpack. Sent from Mail for Windows 10 From: guettliSent: 28 August 2020 14:02To: Django usersSubject: HTML Snippets instead of JSON-API If you read the current articles about software development,you get the impression that you must createa backend API

RE:

2020-08-14 Thread Vishesh Mangla
https://www.youtube.com/watch?v=UmljXZIypDc Follow this good tutorial. Sent from Mail for Windows 10 From: Suraj KumarSent: 14 August 2020 19:31To: django-users@googlegroups.comSubject:  Hi guys, I am to new django. I am making blog website project. During the making blog website I am stuck one poi

RE: How to get data from django model to excel sheet using openpyxl including images.

2020-07-10 Thread Vishesh Mangla
Api’s are better suited for Django rest framework. Sent from Mail for Windows 10 From: Ashutosh MishraSent: 10 July 2020 18:30To: Django usersSubject: Re: How to get data from django model to excel sheet using openpyxl including images. i have created an api through which i can download the excel f

RE: Static not working on unix while working on windows

2020-07-06 Thread Vishesh Mangla
Href = "" static appname/something.css %}” Sent from Mail for Windows 10 From: ashish goyalSent: 06 July 2020 23:50To: django-users@googlegroups.comSubject: Static not working on unix while working on windows Hi All, I have created a django app on windows and have used bootstrap navbar n other func

RE: How to get data from django model to the excel sheet.

2020-07-06 Thread Vishesh Mangla
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_sql.html Sent from Mail for Windows 10 From: Ashutosh MishraSent: 06 July 2020 13:56To: django-users@googlegroups.comSubject: Re: How to get data from django model to the excel sheet. But It is for js,react,angular, how can I pl

RE: How to get data from django model to the excel sheet.

2020-07-06 Thread Vishesh Mangla
@Ashutosh Mishra I think reading your sql table with pandas and using to_excel/to_csv would be great in this case. If you are worried about the images. First of all I don’t know how you are storing your images. One method to store an image is to convert it to a very long base64 string and store it

Re: How to get names of columns from QuerySet without executing it

2020-07-04 Thread Vishesh Mangla
I think learning some sql commands would be good. Lots of youtube tuts available online. https://docs.djangoproject.com/en/3.0/topics/db/sql/#executing-custom-sql-directly On Sun, Jul 5, 2020 at 1:59 AM Akinfolarin Stephen < akinfolarinsteph...@gmail.com> wrote: > you can filter out the column yo

RE: Django Uploaded images not displayed in production

2020-06-21 Thread Vishesh Mangla
If the issue is managing static files on the server simply installing Django-heroku saved me from all that trouble. Sent from Mail for Windows 10 From: Rob RiedlingerSent: 21 June 2020 23:40To: Django usersSubject: Re: Django Uploaded images not displayed in production Check out this video  https:/

RE: Django Uploaded images not displayed in production

2020-06-21 Thread Vishesh Mangla
Sorry, I misunderstood your problem. But can you also show your views.py. Also your path to MEDIA_ROOT is obfuscated. I used MEDIA_ROOT = os.path.join(BASE_DIR, 'media'). I thing this shall be sufficient to do for a try.  Sent from Mail for Windows 10 From: Anton NyagolovSent: 21 June 2020 22:46To:

RE: Django Uploaded images not displayed in production

2020-06-21 Thread Vishesh Mangla
Hi, first of all welcome on this group. Secondly you can also try https://webchat.freenode.net/  on the #django channel but you first need to register there by asking on #freenode channel. Regarding your problem, images are static files and you should put them in static//your_desired_path to be det

RE: Manage.py not working

2020-06-20 Thread Vishesh Mangla
I meant INSTALLED APPS= [], a correction. Sent from Mail for Windows 10 From: Vishesh ManglaSent: 20 June 2020 22:31To: django-users@googlegroups.comSubject: RE: Manage.py not working Isn’t test1 the ‘name’ that you had put in ‘django-admin startproject  ’? Then after this you are supposed to chang

RE: Manage.py not working

2020-06-20 Thread Vishesh Mangla
Isn’t test1 the ‘name’ that you had put in ‘django-admin startproject  ’? Then after this you are supposed to change directory and get into where you find a folder with again. Then you make an app with “python manage.py startapp ” I can’t see any apps there. Also you need to put your ‘appname’ un

Re: Manage.py not working

2020-06-20 Thread Vishesh Mangla
https://docs.djangoproject.com/en/3.0/intro/tutorial01/Please follow this. On Sat, Jun 20, 2020 at 9:34 PM ankit baliyan wrote: > First of all go to test1 folder then run this command. > > On Sat, 20 Jun, 2020, 9:11 pm Tanisha Jain, > wrote: > >> Hi everyone, >> I am new to Django platform.

RE: Help me out please

2020-06-20 Thread Vishesh Mangla
Easiest solutionhttps://www.w3schools.com/html/html5_geolocation.asp  Otherwise GeoDjango might have something Sent from Mail for Windows 10 From: meera ganganiSent: 20 June 2020 14:03To: django-users@googlegroups.comSubject: Help me out please Hello ,     I am working on attendance module in HR Pr

RE: GSoD 2020

2020-06-19 Thread Vishesh Mangla
Although it has been just a few months for me learning Django, and although a lot of people on #django and #python on IRC say that Django docs are easier but I really felt it difficult to understand the required stuff in the docs without having good knowledge of Django. For example I was interested

RE: Please help me out!

2020-06-19 Thread Vishesh Mangla
See Django messages Sent from Mail for Windows 10 From: meera ganganiSent: 19 June 2020 12:01To: django-users@googlegroups.comSubject: Please help me out! Hello ,              I want to implement a Notification module in my Project could you please help me out!  Thank you-Meera Gangani-- You receiv

RE: why in views we use def(functions) and model we use class, why not we use def(fuction) in models and class in views

2020-06-18 Thread Vishesh Mangla
If your wish whatever you want to use, all you have to use is the “request” variable that Django gives you. Btw see “generic views”.  Sent from Mail for Windows 10 From: yashwanth balanaguSent: 18 June 2020 12:23To: Django usersSubject: why in views we use def(functions) and model we use class, why

RE: Django Saving a form with Imagefield on shared host

2020-06-17 Thread Vishesh Mangla
One thing that can be done is to save the image as a base64 string in the database. https://stackoverflow.com/questions/3715493/encoding-an-image-file-with-base64 Sent from Mail for Windows 10 From: MUGOYA DIHFAHSIHSent: 14 June 2020 19:15To: Django usersSubject: Django Saving a form with Imagefiel

RE: Need your help!!

2020-06-15 Thread Vishesh Mangla
What kind of security? Sent from Mail for Windows 10 From: meera ganganiSent: 15 June 2020 22:28To: django-users@googlegroups.comSubject: Need your help!! Hello ,                  How to apply security in django application and  how to secure django applications Thanks in advance -Meera Gangani-- Y

RE: Required Python Django developers

2020-06-06 Thread Vishesh Mangla
Hi, I m interested but I started Django a few months ago only but know about models, forms, html, css, _javascript_. I don’t have any full projects but do know tensorflow and OpenCV too.I know GitHub.  Try considering me. I might not be an expert but am good enough. Sent from Mail for Windows 10 Fr

RE: How to convert the static image files of a readymade template to dynamic

2020-06-05 Thread Vishesh Mangla
First of all, if you will use .css file, it would be better. In that you can include image the usual way.But still if you would like it as inline element thenn use “...{% url ‘’ %}...”. Mind the single commas and double commas.Sent from Mail for Windows 10 From: Rabbi RabbiSent: 05 June 2020 20:57T

RE: Any free MAP API available

2020-06-04 Thread Vishesh Mangla
There’s map-box too if you w’d like to use it.  https://www.mapbox.com/ Sent from Mail for Windows 10 From: meera ganganiSent: 04 June 2020 09:22To: django-users@googlegroups.comSubject: Re: Any free MAP API available you can use Geo-Django Library available in django  On Thu, Jun 4, 2020 at 3:15 A

RE: Please help me out!!!!!

2020-06-03 Thread Vishesh Mangla
Href="" url ‘ name’%}Where name is the name parameter of the view in urls.py. Urlpatterns=[path(“/myview”, views.myview, name=”myview”)] In this caseHref="" url ‘ App_name/myview’%}Write your app name in App name Sent from Mail for Windows 10 From: meera ganganiSent: 03 June 2020 12:49To: django-us

RE: RES: Please help me pip install mysqlclient time screenshot image this error

2020-05-26 Thread Vishesh Mangla
Sorry for duplicate answer. I posted late. Sent from Mail for Windows 10 From: Samuel NogueiraSent: 26 May 2020 22:49To: django-users@googlegroups.comSubject: RES: Please help me pip install mysqlclient time screenshot image this error In the error shows that you don’t have visual C++ 14.0 installe

RE: Please help me pip install mysqlclient time screenshot image this error

2020-05-26 Thread Vishesh Mangla
See the last photo, it says Microsoft Visual C++ 14 required. You are surely using win 7. Please try install Visual studio community version  https://visualstudio.microsoft.com/vs/. Sent from Mail for Windows 10 From: R D SainiSent: 26 May 2020 22:40To: Django usersSubject: Please help me pip insta

RE: Error while trying to send email for password reset

2020-05-24 Thread Vishesh Mangla
\u...    represents a Unicode character and you are using an ascii-decoder to decode it.Consider using encoding=”utf-8”. Sent from Mail for Windows 10 From: sunday honestySent: 24 May 2020 21:09To: Django usersSubject: Error while trying to send email for password reset I got the following error wh

  1   2   >