Re: Django project

2022-05-12 Thread 'Amitesh Sahay' via Django users
Yes, plz make a list of features that you want to have in ur web app, and then read django official doc to understand the working for each feature that u want. That's the way to go ahead, coz what u r asking is very generic  Sent from Yahoo Mail on Android On Thu, 12 May 2022 at 22:44, Tan

Re: Nested json in django rest framework

2022-06-05 Thread 'Amitesh Sahay' via Django users
PROBABLY, Pandas would help you Regards, Amitesh Sahay91-750 797 8619 On Monday, 6 June, 2022, 10:12:07 am IST, Koushik Romel wrote: Thanks for your time I've learnt something new from your message and I solved the problem yesterday itself it was my mistake I added the wrong model t

Re: Help to implement join query in django orm

2022-07-25 Thread 'Amitesh Sahay' via Django users
10. How to perform join operations in django ORM? — Django ORM Cookbook 2.0 documentation (agiliq.com) Try this On Monday, 25 July, 2022 at 01:18:44 pm IST, Mihir Patel wrote: is anyone having login issue? , i am unable to authenticate a user in my website On Sun, Jul 24, 2022 at

reg:not able to open registration form web page

2017-11-15 Thread 'Amitesh Sahay' via Django users
Hello Members,  I am new to Django, and trying to create a mock Django registration page. I am using default Django "User" model to do that, and I am not customizing anything. Its a very simple form with 3 fields as follows: 'username','password','email'. Below are my python and html code details

Re: Django debug of templates and home.html

2017-11-15 Thread 'Amitesh Sahay' via Django users
Hello,  In the settings.py please give the full path to your appsclass as mentioned in app.py. That should be the standard.  Please share the HTML code here, then it should be clear for further suggestion. Regards,Amitesh Sahay primary :: 91-907 529 6235 On Thursday 16 November 2017, 6:4

Re: Django field model for HTML parser?

2017-11-15 Thread 'Amitesh Sahay' via Django users
The HTML file in Django is parsed through views.py if that is what you are looking for. For Italics tag should work. For strong text, you may use tag. I hope that I have understood your question correctly. Hello, Regards,Amitesh Sahay primary :: 91-907 529 6235 On Thursday 16 Novembe

Re: Disable Auth on Django Application.

2017-11-15 Thread 'Amitesh Sahay' via Django users
Hello Arun,  In that case, you may just need to import "User" model in model.py as below from django.db import modelsfrom django.contrib.auth.models import User class Registration(models.Model):    user = models.OneToOneField(User, on_delete=models.CASCADE) That's it, and then you need to mention

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

2017-11-16 Thread 'Amitesh Sahay' via Django users
Can somebody kindly reply to my query please... I am completely stuck no where to find any help Sent from Yahoo Mail on Android On Wed, Nov 15, 2017 at 19:08, Amitesh Sahay wrote: Hello Members,  I am new to Django, and trying to create a mock Django registration page. I am using default

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

2017-11-17 Thread 'Amitesh Sahay' via Django users
am not able to think much on this part.  Hello, Regards,Amitesh Sahay primary :: 91-907 529 6235 On Friday 17 November 2017, 12:04:25 PM IST, James Schneider wrote: On Nov 15, 2017 8:32 AM, "'Amitesh Sahay' via Django users" wrote: Hello Members,  I am ne

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

2017-11-18 Thread 'Amitesh Sahay' via Django users
aturday 18 November 2017, 4:26:37 AM IST, Mike Dewhirst wrote: 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

Re: Problem with Django TemplateDoesNotExist.

2017-11-18 Thread 'Amitesh Sahay' via Django users
Hi, 1) Its pretty obvious that the django is not able to find the required file in the given file path, so please it.  2) As far as I know, the django 1.11 is supported by Python 3.6. So,  I would recommend you to go through the release notes of the 1.11 and use the recommended system configurat

Re: How do I customize a user registration form so it only requires email and password fields?

2017-11-19 Thread 'Amitesh Sahay' via Django users
Hello Tom,  Django comes inbuilt with user authentication functions which is almost more than enough in most of the requirements.In your case, you just need to import User model in models.py and in views.py under "if" statement just return HttpResponse. You dont need to write anything else. For

Re: Why do I get this error "context must be a dict rather than Context." ?

2017-11-20 Thread 'Amitesh Sahay' via Django users
As far as I know, context is always built through key, value pair. But check for it before coming to any conclusion Hello, Regards,Amitesh Sahay primary :: 91-907 529 6235 On Monday 20 November 2017, 6:08:00 PM IST, pallavi pund wrote: This helped me too . thank you On Sunday, A

Re: How & Where are Django View Functions Called?

2019-01-11 Thread 'Amitesh Sahay' via Django users
models.py, urls.py Regards, Amitesh Sahay91-750 797 8619 On Thursday, 10 January, 2019, 11:50:54 PM IST, Vivek Jha wrote: you have to call in urls.py  from django.urls import path projectname.appname.views import home url patterns=[                  path('home/',home), On Thu, Jan 1

Re: Pip installation

2019-01-13 Thread 'Amitesh Sahay' via Django users
Hello Kidwell, Did you receive any message by chance that says " "You are using pip version x.x.x, however version x.x.x is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command""?where x = version of the existing pip version on your machine and the versi

Re: Looking for a Django Co-Founder.

2019-01-22 Thread 'Amitesh Sahay' via Django users
Hi, I am interested as well. I have 4 years of work experience in Python, around 2 years on Django.  Regards, Amitesh Sahay91-750 797 8619 On Tuesday, 22 January, 2019, 3:34:33 PM IST, Abhinav tuteja wrote: Hey i am a django developer and i we are a team of  2 people with 3 years

Re: Looking for a Django Co-Founder.

2019-01-22 Thread 'Amitesh Sahay' via Django users
Hello Zack,  I am based in Indian Standard Time zone. Please let me know about your time zone so that we could try to sync. Regards, Amitesh Sahay91-750 797 8619 On Tuesday, 22 January, 2019, 5:56:27 PM IST, Zack Amaral wrote: Abhinav, What’s your availability this week? I’d love t

Re: Best Learning Resources

2019-01-22 Thread 'Amitesh Sahay' via Django users
I would also suggest a youtube django course by Durga soft. I must confess that, his English is not pretty, but if you can ignore that you can get deep knowledge from his tutorials. Web Development Django with Python Online Training by Durga Sir On 25-05-2018 @ 8PM | | | | | | | | |

Re: how can I reference a field from one model to another model

2019-01-25 Thread 'Amitesh Sahay' via Django users
hi,  All the above should work. If you are working on django REST, then you can use ModelSerializer helper function. This will automatically sync with the table fields, and if there are any foreign key and primary key. They would be mapped automatically.  Regards, Amitesh Sahay91-750 797 8619

Re: Looking for a Django Co-Founder.

2019-01-25 Thread 'Amitesh Sahay' via Django users
n 22, 2019 at 5:45 AM 'Amitesh Sahay' via Django users wrote: Hello Zack,  I am based in Indian Standard Time zone. Please let me know about your time zone so that we could try to sync. Regards, Amitesh Sahay91-750 797 8619 On Tuesday, 22 January, 2019, 5:56:27 PM IST,

Re: checkng for uniqueness of a field in django Admin

2019-01-28 Thread 'Amitesh Sahay' via Django users
If that field has unique values, probably you can use that fileld as primary key.  Regards, Amitesh Sahay91-750 797 8619 On Monday, 28 January, 2019, 7:18:35 PM IST, 'Odile Lambert' via Django users wrote: Hello In django admin, I have a model with a model fiel "tech_number" wh

Re: Looking for a Django Co-Founder.

2019-02-01 Thread 'Amitesh Sahay' via Django users
Hello Zack, I have been saying that I am interested since one month now. Still you keep asking the same question. Please schedule a conference call with all the interested stakeholder. There are many free online software that allows conference call free of cost e.g. SKYPE.  Let me know. My numbe

Re: Django timezone problem

2019-02-04 Thread 'Amitesh Sahay' via Django users
Hello Mikko, There are basically two ways which I know . One is the timezone module that you are using another is datetime module. I believe that timezone module is more effective one.But instead of calling timezone.now() , call timezone.now. Or what is the exact issue are you facing? Regards,

Re: reg: How to use Django Password validation in my existing views?

2019-02-05 Thread 'Amitesh Sahay' via Django users
ebruary, 2019, 11:48:21 am IST, 'Amitesh Sahay' via Django users wrote: I have an existing django views.py where I have some password, username, and email validation logic applied. However, going forward I need to apply more advanced password validation. for e.g. password lengt

Re: Django timezone problem

2019-02-06 Thread 'Amitesh Sahay' via Django users
sees what happened on February 4, because it is February 4 here (in Finland or England, not sure what timezone I'm using). So I want to make my view to understand the end user's local time, so it can pick the right story from the database for the webpage visitor. -Mikko ma 4. helmik. 2019

REG: Why my django email settings not sending email notifications?

2019-02-17 Thread 'Amitesh Sahay' via Django users
I have created a registration page that sends an email notification on successful registration. I do have my email notification in place. But it doesn't seem to be working, neither it is throwing any error. Below is the code snippet. views.py def register(request): validators = [MinimumLeng

Re: REG: Why my django email settings not sending email notifications?

2019-02-17 Thread 'Amitesh Sahay' via Django users
Tamang wrote: can you check if you your email server is somehow blocking your emails? Have you enabled your debug settings ON? On Sun, Feb 17, 2019 at 2:49 PM 'Amitesh Sahay' via Django users wrote: I have created a registration page that sends an email notification on successful r

Re: How to create model for this json data

2019-02-20 Thread 'Amitesh Sahay' via Django users
Hi, First, try to understand the error messages. It says there are fields that are required, but you are leaving them blank. Then, there are some fields those cannot have "null", but soemhow you are adding null values to them. I would suggest using below Django CLI commands to add the data to you

No module

2019-02-21 Thread 'Amitesh Sahay' via Django users
You have probably forgotten to make the entry of the app name in the settings.py. Regards, Amitesh Sahay91-750 797 8619 On Thursday, 21 February, 2019, 1:41:10 PM IST, bhushan patil wrote: I am running this command python manage.py makemigrations polls but it is showing that django

Re: Models in admin view

2019-03-03 Thread 'Amitesh Sahay' via Django users
Hello Raghav,  Once you register something in admin.py, you should see  that update in the admin page. Login there and click on "candidates" , now you can add the candidates multiple times. Regards, Amitesh Sahay91-750 797 8619 On Friday, 1 March, 2019, 6:34:56 pm IST, raghav b wrote:

Re: add Image Field in model

2019-03-13 Thread 'Amitesh Sahay' via Django users
Hello Omar,  You need to install "pillow" python module in order to work with image files. Regards, Amitesh Sahay91-750 797 8619 On Tuesday, 12 March, 2019, 6:51:09 pm IST, omar ahmed wrote: helloi want to add image field in my modeli typed :  image = models.ImageField()but :  Cannot

Re: ML-Python

2019-03-20 Thread 'Amitesh Sahay' via Django users
This forum is to provide help on Django related queries. Kindly refrain asking un-related topics. Regards, Amitesh Sahay On Wednesday, 13 March, 2019, 9:05:08 pm IST, Utpal Mishra wrote: You have to use "model_selection", it will work. Quite a while ago "cross_validation" has been

Re: add Image Field in model

2019-03-26 Thread 'Amitesh Sahay' via Django users
Hello Omar,  When creating a model you need to use "ImageField" example abc = models.ImageFields() I hope thats what you are looking for. If you have any specific requirements do let me know.Sorry for the delayed response. Regards, Amitesh Sahay On Wednesday, 13 March, 2019, 5:55:15 pm IST

reg: Django model sequense of the fields

2019-05-08 Thread 'Amitesh Sahay' via Django users
Hello Users,  I am seeing a very strange issue with my Django models. in my models.py, I have 21 fields. Out of them , the 6th field is DASHBoard. However, when I see those fields in my postgres DB through PgAdminIII, it is listed at the very end of the list.  Sorry, for security reasons I could

reg: Object of type 'ListSerializer' is not JSON serializable

2019-07-08 Thread 'Amitesh Sahay' via Django users
hello Members,  I am working on some POC for django rest framework. Its very simple setup, nothing complicated. While I was doing my testing I am facing below error: === TypeError at /api/status/ Object of type 'ListSerializer' is not JSON serializable | Request Met

Re: reg: Object of type 'ListSerializer' is not JSON serializable

2019-07-08 Thread 'Amitesh Sahay' via Django users
'Amitesh Sahay' via Django users kirjoitti: hello Members,  I am working on some POC for django rest framework. Its very simple setup, nothing complicated. While I was doing my testing I am facing below error: === TypeError at /api/status/ Obje

reg: rest framework in-built mixins

2019-07-12 Thread 'Amitesh Sahay' via Django users
Hi,  I am writing a simple CRUD with djangorestframework, and I am using in-built mixin. Please see below, and look for ' class StatusAPIView' views.py=== from django.views.generic import View from rest_framework.views import APIView from rest_framework import generics, mixins from rest_fr

Re: Unable to change db sqllite to mysql

2019-07-12 Thread 'Amitesh Sahay' via Django users
Try to use 'UTF-8' instead of 'utf8mb4' and see if that works. Regards, Amitesh Sahay On Friday, 12 July, 2019, 07:56:33 am IST, Jorge Gimeno wrote: On Thu, Jul 11, 2019 at 6:55 PM john samuel wrote: Hi shreeram, But the fact is that i  have changed the port number in xampp server

Re: python manage.py runserver error

2019-07-14 Thread 'Amitesh Sahay' via Django users
Can you check if you have entered  'hello_world' in your app list in settings.py? Regards, Amitesh Sahay On Saturday, 13 July, 2019, 08:03:35 pm IST, Charlotte Wood wrote: Have you listed hello_world in your apps in settings.py? Is it something that you pip install? Is it the name o

reg: Error:-django.db.utils.OperationalError: (1170, "BLOB/TEXT column 'Description' used in key specification without a key length")

2020-02-24 Thread 'Amitesh Sahay' via Django users
Hi,  I am creating a model, which is taking a description as text field. when I migrate I see the below error: django.db.utils.OperationalError: (1170, "BLOB/TEXT column 'Description' used in key specification without a key length") ON further research I came to know that its some limitation wit

reg: CUstomizing User model

2020-04-17 Thread 'Amitesh Sahay' via Django users
Hi,  I am creating the user signup form with the help of "UserCreationForm" and "User" model. So, whatever came in-built is working fine for me, I am able to successfully create the sign up and form and able to authenticate. So far so good. Now, I am trying to add a new "phone" field in the exi

Reg: Django signal not working

2020-04-17 Thread 'Amitesh Sahay' via Django users
Hi, I am creating a Django signup form through "User" model and "UserCreationForm" and customized the User model to accommodate single user defined field "contact". However, the signal that I have written seems not to be working. Whenever, I am filling the form, I am getting below error: Attribu

Re: Reg: Django signal not working

2020-04-20 Thread 'Amitesh Sahay' via Django users
-+c Hello Jorge,  After doing some research, I realized that the signal which is saving the user profile should have  "instance.signup.save()" , as the name of the custom model is signup. This time I still got the error .However,  I could create the new user and login to the website. However, wh

Re: Reg: Django signal not working

2020-04-20 Thread 'Amitesh Sahay' via Django users
0 at 16:28, Aditya Singh wrote: What's the original issue please, seems like you picked things up with someone till this email.Regards,Aditya On Mon, Apr 20, 2020, 3:11 PM 'Amitesh Sahay' via Django users wrote: -+c Hello Jorge,  After doing some research, I realized t

Re: Reg: Django signal not working

2020-04-22 Thread 'Amitesh Sahay' via Django users
ginal issue please, seems like you picked things up with someone till this email.Regards,Aditya On Mon, Apr 20, 2020, 3:11 PM 'Amitesh Sahay' via Django users wrote: -+c Hello Jorge,  After doing some research, I realized that the signal which is saving the user profile should have

reg: how to use Jinja template in HTML for django forms

2020-04-24 Thread 'Amitesh Sahay' via Django users
Hi,I have created django forms and the logic is fine, and I have created the HTML page to show the form fields. I have attached the screenshot for the reference. The problem I am facing two issues as below:- 1) to integrate the django form fields in the HTML page through Jinja. HTML file:{% load

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-24 Thread 'Amitesh Sahay' via Django users
DJANGO_SETTINGS_MODULE is not the problem I guess, as its not there even in my settings.py. Did you define your app in apps settings?  Regards, Amitesh On Friday, 24 April, 2020, 06:45:43 pm IST, Raja Sekar Sambath wrote: Yes I'm On Fri, 24 Apr 2020 at 18:30, DANIEL URBANO DE LA RU

Re: Django Rest Framework - Integrating Django Channels

2020-04-24 Thread 'Amitesh Sahay' via Django users
Hi, Try the below link:Django REST Framework and Channels | | | | | | | | | | | Django REST Framework and Channels OddBird We’ve begun exploring some patterns for how to add WebSocket push notifications to what is otherwise a RESTful A... | | | Regards, Amitesh Sahay91-7

reg: DRF serializer ot pulling data from User model

2020-04-27 Thread 'Amitesh Sahay' via Django users
Hello All, DRF failing to pull the data from User model I have two Serializers for Two models(User model and UserProfile). models.py--class UserProfile(models.Model): Photo = models.FileField(upload_to='documents/%Y/%m/%d/', null=True) uploaded_at = models.DateTimeField(auto_now_ad

Re: AttributeError with forms

2020-04-27 Thread 'Amitesh Sahay' via Django users
I couldn't open the screenshot . But to work with the django forms you need to perform below tasks. 1) create model of your choice in models.py.2).  Python manage.py makemigrations3) python manage py migrate.4 create a python file called forms.py inside your app.5) import your models there ( fro

Re: AttributeError

2020-04-27 Thread 'Amitesh Sahay' via Django users
Do you have a "date" field in your models.py.? Please share models.py, and views.py as well Sent from Yahoo Mail on Android On Mon, 27 Apr 2020 at 22:44, Phako Perez<13.phak...@gmail.com> wrote: I think issue is how you are trying to access the attributeThis is a form and must be accesse

reg: NoReverseMatch at "login"

2020-04-28 Thread &#x27;Amitesh Sahay&#x27; via Django users
Hi, Its a shame that I am not able to resolve this simple issue. Explanation as below Once the user login, he/she will be rendered to a page called (chitrr.html). This I have mentioned as a "return redirect('chitrr')". But when I login, it is giving "NoReverseMatch" error.  It's ironic that ever

Re: reg: NoReverseMatch at "login"

2020-04-28 Thread &#x27;Amitesh Sahay&#x27; via Django users
Whichever view is handling the rendering of the chittr.html page is what should be the argument for redirect. Sent from my iPhone On 28 Apr 2020, at 16:28, 'Amitesh Sahay' via Django users wrote: Hi, Its a shame that I am not able to resolve this simple issue. Explanation as

Re: reg: NoReverseMatch at "login"

2020-04-28 Thread &#x27;Amitesh Sahay&#x27; via Django users
That didn't work. we need to redirect to a web page, and not a function. May be I am wrong. As I have said, it was working before, and suddenly it stopped working. Not sure what went wrong. Regards,Amitesh On Wednesday, 29 April, 2020, 12:52:16 am IST, 'Amitesh Sahay' vi

Re: reg: NoReverseMatch at "login"

2020-04-29 Thread &#x27;Amitesh Sahay&#x27; via Django users
Forget it, I figured out the issue. Solved it.. As said silly mistake... Sent from Yahoo Mail on Android On Wed, 29 Apr 2020 at 10:15, 'Amitesh Sahay' via Django users wrote: That didn't work. we need to redirect to a web page, and not a function. May be I am wrong. As I

Re: App Dev wanted

2020-04-29 Thread &#x27;Amitesh Sahay&#x27; via Django users
Hey Arne, I have 4 years of web dev exp.. if you wish we can have a con call and get around the work based on the requirements Amitesh Sent from Yahoo Mail on Android On Wed, 29 Apr 2020 at 20:52, tejasri mamidi wrote: I'm new django developer ,I wanna help you ...if need it ..email me On

Re: {"image":["File extension “zip” is not allowed. Allowed extensions are: bmp, dib, gif, tif, tiff, jfif, jpe, jpg, jpeg, pbm, pgm, ppm, pnm, png, apng, blp, bufr, cur, pcx, dcx, dds, ps, eps, fit,

2020-04-30 Thread &#x27;Amitesh Sahay&#x27; via Django users
This is a very less information, please share more information, code snippet where the attachment conditions are written, etc. Regards, Amitesh On Thursday, 30 April, 2020, 02:05:59 pm IST, yashwanth balanagu wrote: {"image":["File extension “zip” is not allowed. Allowed extensions

Reg: need helping hand on a real time project

2020-04-30 Thread &#x27;Amitesh Sahay&#x27; via Django users
Hello All, I am working on a project, which happens to be a real time project, once completed would be deployed over the cloud. Therefore, I am looking for a helping hand who is willing to learn and get some real time experience.  But let me be very clear, it's not a very complex project, but goo

Re: "detail": "CSRF Failed: Referer checking failed - no Referer."

2020-04-30 Thread &#x27;Amitesh Sahay&#x27; via Django users
Try the below link https://docs.djangoproject.com/en/3.0/ref/settings/ Sent from Yahoo Mail on Android Sent from Yahoo Mail on Android On Thu, 30 Apr 2020 at 19:35, VenkataSivaRamiReddy wrote: Send the url let me check On Thu, Apr 30, 2020, 18:49 shreehari Vaasistha L wrote: Also csrf ex

Re: Can anyone please help?

2020-04-30 Thread &#x27;Amitesh Sahay&#x27; via Django users
It should be Endpoint.as_view() Sent from Yahoo Mail on Android On Thu, 30 Apr 2020 at 17:35, Milson Munakami wrote: Can anyone please help me to resolve this issue? https://stackoverflow.com/q/61514512/1316060 My url path in project's url.py is defined as follows: path('endpoint/', view

Re: Can anyone please help?

2020-04-30 Thread &#x27;Amitesh Sahay&#x27; via Django users
y, That is already path('endpoint/', views.Endpoint.as_view(), name='get_endpoint'), On Thu, Apr 30, 2020 at 1:15 PM 'Amitesh Sahay' via Django users wrote: It should be Endpoint.as_view() Sent from Yahoo Mail on Android On Thu, 30 Apr 2020 at 17:35, Milson M

Re: Can anyone please help?

2020-04-30 Thread &#x27;Amitesh Sahay&#x27; via Django users
iews.Endpoint.as_view(), name='get_endpoint'), On Thu, Apr 30, 2020 at 1:15 PM 'Amitesh Sahay' via Django users wrote: It should be Endpoint.as_view() Sent from Yahoo Mail on Android On Thu, 30 Apr 2020 at 17:35, Milson Munakami wrote: Can anyone please help me t

reg: rendering profile page

2020-05-01 Thread &#x27;Amitesh Sahay&#x27; via Django users
Hello All,  Kindly help in the below link how to redirect to a profile page and see the data of the logged in user in Django? | | | | | | | | | | | how to redirect to a profile page and see the data of the logged in user... I have been working on a small project, and it was developin

[no subject]

2020-05-03 Thread &#x27;Amitesh Sahay&#x27; via Django users
it should be return redirect('login') please check On Sunday, 3 May, 2020, 07:34:11 pm IST, fahad rasool wrote: I am unable to redirect to my login page from signup page and nor i am able to store sign up form details in the database .please someone help its urgent.. -- You receive

Re: Re:

2020-05-03 Thread &#x27;Amitesh Sahay&#x27; via Django users
please show your app's urls.py, as well the errors Regards, Amitesh On Sunday, 3 May, 2020, 07:53:47 pm IST, fahad rasool wrote: Than also it is not working On Sun, 3 May 2020, 7:44 pm 'Amitesh Sahay' via Django users, wrote: it should be return redirect('lo

Re: Form not visible on the add page

2020-05-03 Thread &#x27;Amitesh Sahay&#x27; via Django users
did you migrate the MODEL? Regards, Amitesh Sahay91-750 797 8619 On Sunday, 3 May, 2020, 08:15:32 pm IST, Jorge Gimeno wrote: On Sun, May 3, 2020 at 7:34 AM Vikram Jaiswal wrote: I am not able to see the form on admin page to add the dataFirst  -First -settings.

Re: Page 404 error after running Django server

2020-05-04 Thread &#x27;Amitesh Sahay&#x27; via Django users
There are lots of issues with urls.pyPlease go through the django documents on how to write urls.py Sent from Yahoo Mail on Android On Mon, 4 May 2020 at 23:39, Deepti sharma wrote: Hi, I have just started learning django and was trying to make a meeting planner project y folllowing a co

Re: Page 404 error after running Django server

2020-05-04 Thread &#x27;Amitesh Sahay&#x27; via Django users
GettingStartedDjango\venv\lib\site-packages\django\core\handlers\base.py  in _get_response - response = wrapped_callback(request, *callback_args, **callback_kwargs) On Mon, May 4, 2020 at 2:37 PM R D Saini wrote: path("welcome/",views.welcom), On Mon 4 May, 2020, 11:42 PM 'Ami

Re: Page 404 error after running Django server

2020-05-04 Thread &#x27;Amitesh Sahay&#x27; via Django users
s, **callback_kwargs) On Mon, May 4, 2020 at 2:37 PM R D Saini wrote: path("welcome/",views.welcom), On Mon 4 May, 2020, 11:42 PM 'Amitesh Sahay' via Django users, wrote: There are lots of issues with urls.pyPlease go through the django documents on how to write urls.py Sen

reg: User model data missing from web page

2020-05-05 Thread &#x27;Amitesh Sahay&#x27; via Django users
I have a profile page where I am fetching data from two models. One from the default User model and another one is custom UserProfile.  However, The data from the custom model is getting populated, but not the User model.Below are the two functions responsible for the whole procedure.  def userpr

Re: reg: User model data missing from web page

2020-05-05 Thread &#x27;Amitesh Sahay&#x27; via Django users
4(User, user=request.user) In the profile_page view, you can use reverse relation on the user model. Regards,Chetan Ganji+91-900-483-4183ganji.chetan@gmail.comhttp://ryucoder.in On Tue, May 5, 2020 at 9:02 PM 'Amitesh Sahay' via Django users wrote: I have a profile page where I am fetching dat

Re: reg: User model data missing from web page

2020-05-05 Thread &#x27;Amitesh Sahay&#x27; via Django users
st.user.id)data2 = get_object_or_404(User, user=request.user) In the profile_page view, you can use reverse relation on the user model. Regards,Chetan Ganji+91-900-483-4183ganji.chetan@gmail.comhttp://ryucoder.in On Tue, May 5, 2020 at 9:02 PM 'Amitesh Sahay' via Django users wrot

Re: reg: User model data missing from web page

2020-05-05 Thread &#x27;Amitesh Sahay&#x27; via Django users
o the point where I can see only the UserProfile data. Just wanted to give you some insight. Regards, Amitesh On Wednesday, 6 May, 2020, 12:11:32 am IST, 'Amitesh Sahay' via Django users wrote: Hi Chetan, The default user model already has those three fields, right? And sin

Re: reg: User model data missing from web page

2020-05-05 Thread &#x27;Amitesh Sahay&#x27; via Django users
_or_404(UserProfile, user=request.user) #data2 = get_object_or_404(User, user=request.user) data2 = User.objects.get(id = request.user.id) context = {'data': data, 'data2': data2} return render(request, 'authenticate\\profile.html', locals()) Regards,

Re: How to send dict to template and use it

2020-05-06 Thread &#x27;Amitesh Sahay&#x27; via Django users
Your view seems to have incorrect render. Sent from Yahoo Mail on Android On Thu, 7 May 2020 at 11:25, Mohsen Pahlevanzadeh wrote: I have the following view function: def index(request, question_id):     latest_question_list = User.objects.all() #Post.objec

REG: django form rendering query

2020-05-10 Thread &#x27;Amitesh Sahay&#x27; via Django users
Hello All, I have a website, which is up and running. No issues at all.  My Query: I have a form which users could only see once they are successfully logged in. Currently, it have just 5 mandatory fields. However, going forward, I have to incorporate more 30 fields. So it could be a mess if I pu

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread &#x27;Amitesh Sahay&#x27; via Django users
Generally, {% csrf_token %} is written just below the opening tag. I mean, not sure if this has anything to do with your issue. Others may confirm as well Regards, Amitesh On Thursday, 30 July, 2020, 07:26:21 am IST, Christian Seberino wrote: Here is my template... {% extends "htm

reg: error after I update my user profile page successfully

2020-07-29 Thread &#x27;Amitesh Sahay&#x27; via Django users
Hello All,  I have been facing a very notorious issue. I say notorious because, I do not see any issue with my back-end functionality. I have developed a method to update the default User model field(email), and other extended User model(custom fields like country, state, phone etc). Below is the

Re: Django3 runserver error

2020-07-30 Thread &#x27;Amitesh Sahay&#x27; via Django users
It seems to me as if there is a mismatch of some in-built functionality. Can't say for exact though. Did you follow the migration rules from one version to another ? Regards, Amitesh  On Thursday, 30 July, 2020, 03:22:51 pm IST, Thierry DECKER wrote: The resolve() method dose not h

Re: help on extending user model using django rest_framework

2020-07-30 Thread &#x27;Amitesh Sahay&#x27; via Django users
Where is your "CustomUser" defined? D you think it could be  user = models.OneToOneField(User, ..) Regards, Amitesh  On Thursday, 30 July, 2020, 03:59:59 pm IST, ola neat wrote: good day fellaz, i'm working on extending my user model to enable user create a profile but i'm getting a

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-30 Thread &#x27;Amitesh Sahay&#x27; via Django users
Hi,  I am glad that I could help you. Cheerz Regards, Amitesh On Friday, 31 July, 2020, 01:16:14 am IST, Isha Thakur wrote: #yiv1468174970 P {margin-top:0;margin-bottom:0;}Hi,  I think, it can help you. You should never compare the complete HTML content. Just check the functionalit

Re: Problem in user creation

2020-08-04 Thread &#x27;Amitesh Sahay&#x27; via Django users
Post your signal here to check On Tuesday, 4 August, 2020, 11:07:56 pm IST, sonam pankaj wrote: We have already used signals. still it escaped to make one of the user On Tue, Aug 4, 2020 at 9:35 PM neeraj garg wrote: You could use django signals which will keep the models in sync.

[no subject]

2020-08-12 Thread &#x27;Amitesh Sahay&#x27; via Django users
probably, you can implement binary search algorithm Regards, Amitesh  On Thursday, 13 August, 2020, 08:28:02 am IST, ROHINI PUNDE wrote: Hi, I want to do sorting, searching and paging in my crud operations,I am not getting exactly what can I do easily with python and django.please g

Re: type error

2020-08-18 Thread &#x27;Amitesh Sahay&#x27; via Django users
Hi,  I have developed a django website for my company. Its schoolnskill.com. For now its not much to look at. But due to other work I am not able to add enhancements to it.  1) I need to add payment gateway(Paytm and Paypal)2) Create one more model and then create respective forms.py and views.p

Re: Sources for learning django

2020-08-23 Thread &#x27;Amitesh Sahay&#x27; via Django users
Yo start with you can implement the Django in - built authentication system . You will learn a lot Sent from Yahoo Mail on Android On Fri, 21 Aug 2020 at 4:00, Mohamed Ghoneim wrote: Hey guys,  can any one tell me  name of books , websites or youtube channels  which are good to learn dja

Re: NGINX + GUNICORN

2020-09-10 Thread &#x27;Amitesh Sahay&#x27; via Django users
Please make sure that gunicorn.service file has same entry of project dir path as nginx. Regards, Amitesh On Thursday, 10 September, 2020, 01:09:20 pm IST, Giovanni Silva wrote: Dears,  can anyone help-me to configure a NGINX + GUNICORN to multiple projects? for the first project ev

Re: 404 error

2020-09-12 Thread &#x27;Amitesh Sahay&#x27; via Django users
At the first glance, I think you havn't created URL pattern for "music". May bejust saying. Regards, Amitesh  On Saturday, 12 September, 2020, 12:47:56 pm IST, Spyke Lionel wrote: I have this urlpatterns.. urlpatterns = [    path('', views.index, name='index'),    path('/', vie

Re: 404 error

2020-09-12 Thread &#x27;Amitesh Sahay&#x27; via Django users
ntext from view. On Sat, Sep 12, 2020, 12:52 'Amitesh Sahay' via Django users wrote: At the first glance, I think you havn't created URL pattern for "music". May bejust saying. Regards, Amitesh  On Saturday, 12 September, 2020, 12:47:56 pm IST, Spyke Lionel

Re: Help:What is the problem in this code?

2020-09-14 Thread &#x27;Amitesh Sahay&#x27; via Django users
have you configured the django env in virtual env, and are you trying to execute the commands outside the virtual env? Regards, Amitesh On Sunday, 13 September, 2020, 09:39:59 pm IST, Kasper Laudrup wrote: Hi Hassan, There's nothing wrong with this code. It's just that it's only vali

Re: How to deploy Django Python Webapp with Windows10?

2019-01-06 Thread &#x27;Amitesh Sahay&#x27; via Django users
Hello Joel,  I don't know if this is too late to reply.But even on windows 10 you need web server installed to host the website. I guess IIS is the one probably you can use. To test your environment you can download WAMP server and then proceed from there.  Regards, Amitesh Sahay91-750 797 861

reg: Django resource requirement for a Start-up project.

2020-11-21 Thread &#x27;Amitesh Sahay&#x27; via Django users
Dear Members.  We are launching a start-up in some month. A  basic website on Django platform have already been developed. However, we still need some more features to be developed and enabled on the web application. Any candidate who are interested. Please connect with me  on amitesh.sa...@yaho

reg: Custom User model

2021-01-06 Thread &#x27;Amitesh Sahay&#x27; via Django users
Hi,  I have created a custom User model as show below models.py Regards, Amitesh Sahay91-750 797 8619 -- 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

Reg: django termination

2021-01-06 Thread &#x27;Amitesh Sahay&#x27; via Django users
Hi All, please somebody reply on the below link why the django admin console is terminating the web server automatically? | | | | || | | | | | why the django admin console is terminating the web server automatically? I have created a custom User model as I wanted to u

Re: UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread &#x27;Amitesh Sahay&#x27; via Django users
Could you please paste your models.py Sent from Yahoo Mail on Android On Sat, 9 Jan 2021 at 18:36, 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 valid email ad

Re: UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread &#x27;Amitesh Sahay&#x27; via Django users
Hello Vishesh,  Below is from my models.py: models.py-from django.contrib.auth.base_user import BaseUserManager from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin from django.utils.translation import gettext_lazy as _ class AccountManager(BaseUserManager): d

Re: UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread &#x27;Amitesh Sahay&#x27; via Django users
Did you happen to remove the private method "def _create_user" from your models.py? Regards, Amitesh  On Saturday, 9 January, 2021, 08:08:16 pm IST, Vishesh Mangla wrote: Oops I guess, my bad messaging style made you miss the last few pieces of my messages. Thanks, but that problem

Re: python manage.py runserver can not use newly compiled sqlite3 lib on CentOS 7

2021-01-20 Thread &#x27;Amitesh Sahay&#x27; via Django users
Try older version of Python interpreter and see if that works. May be  consider using 3.6 Regards, Amitesh  On Wednesday, 20 January, 2021, 05:55:32 pm IST, panfei wrote: I found that, it may not be a Django-related issue, It's more likely a Python level issue, but do anyone know h

Re: python manage.py runserver can not use newly compiled sqlite3 lib on CentOS 7

2021-01-20 Thread &#x27;Amitesh Sahay&#x27; via Django users
environment. but I still want to find a way (maybe a workaround) to solve this problem. 'Amitesh Sahay' via Django users 于2021年1月20日周三 下午9:48写道: Try older version of Python interpreter and see if that works. May be  consider using 3.6 Regards, Amitesh  On Wednesday, 20 January, 2

Re: python manage.py runserver can not use newly compiled sqlite3 lib on CentOS 7

2021-01-20 Thread &#x27;Amitesh Sahay&#x27; via Django users
itesh Sahay' via Django users 于2021年1月20日周三 下午9:48写道: Try older version of Python interpreter and see if that works. May be  consider using 3.6 Regards, Amitesh  On Wednesday, 20 January, 2021, 05:55:32 pm IST, panfei wrote: I found that, it may not be a Django-related issue,

reg: Django vs DRF

2021-03-26 Thread &#x27;Amitesh Sahay&#x27; via Django users
I have a basic question.From all the tutorials and document that I have gone through for DRF, my understanding is that Token authentication is used to access the REST APIs. So, my question is, does DRF have such a user creation system, or is it only done through the Django User model, i.e. The w

  1   2   >