How to access individual fields with of customised User model using AbstractUser?

2020-06-11 Thread Sandip Nath
I have defined a user model inheriting AbstractUser from django.auth.models. How can I refer to each individual fields of that customized user model? Say if I want to refer to date of birth of the customised user what should I write? I need to show the user prifile, so in show_profile.html file

Re: Uploading images from media folder during runtime.

2020-03-22 Thread Sandip Nath
MMK, That is the solution for static files, not the dynamic one. How to upload images dynamically during runtime, such as the user uploads his/her profile image. On Sunday, 22 March 2020 00:21:10 UTC+5:30, Sandip Nath wrote: > > I am developing a car rental app. I have esigned it such

Re: Uploading images from media folder during runtime.

2020-03-21 Thread Sandip Nath
have written it as . Please advice. Thanks in advance. On Sunday, 22 March 2020 00:21:10 UTC+5:30, Sandip Nath wrote: > > I am developing a car rental app. I have esigned it such a way that the > car and driver images will be uploaded from admin page during runtime from > media fold

Re: arithmatic captcha

2020-03-21 Thread Sandip Nath
Please refer to this link: https://simpleisbetterthancomplex.com/tutorial/2017/02/21/how-to-add-recaptcha-to-django-site.html On Friday, 20 March 2020 17:35:00 UTC+5:30, Hema Bhagnani wrote: > > I have already coded the user login and signup page. Now I want to add > arithmetic captcha to my sig

Uploading images from media folder during runtime.

2020-03-21 Thread Sandip Nath
I am developing a car rental app. I have esigned it such a way that the car and driver images will be uploaded from admin page during runtime from media folder. The models.py working fine. Images can be uploaded to the media folder. But the images are not getting diplayed on the car page. Shoul

Re: Python Django Training

2020-02-22 Thread Sandip Nath
Sir, I am also interested. But how the class will be conducted. Please inform. On Saturday, 1 February 2020 19:12:52 UTC+5:30, Srikanth K wrote: > > Hi, > > I am from Hyderabad. I am Python Developer by Profession. I am eager take > up any Python , Django Training (online Preferrable or Weekends

How to create a a drop-down menu from the logged in username

2019-09-09 Thread Sandip Nath
Am new to Django. Am trying to build a car rental web site. After logging in the home page navbar at the top is showing the "hello " as expected. But I want a drop-down menu from that welcome message which will contain the user edit profile option, his/her bookings and a logout options. I have c

Re: Please someone should help me fix this

2019-09-02 Thread Sandip Nath
First cd to your project folder. Once there create a virtual environment and enable the environment. The best ,the easiest and the smartest method is to use pipenv. 1. First install pipenv with: pip install pipenv 2. cd to your project folder. 3. Run the command: pipenv shell 4. Your virtual enviro

How to change the label for username to 'username/email' in login page in Django

2019-08-30 Thread Sandip Nath
I am building a car rental website with Django. Currently working on user authentication.The user can either use his/her username/email and password to login.It's working fine. My question is, how will I change the label for username field to "username/email" so that the user can understand that

Looking for Django registration API

2019-08-21 Thread Sandip Nath
Are there any ready to use user authentication API for Django where user can register not only with username, password and email but also with date of birth, profile-url, picture etc? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscr

Django + PostgreSQL Installation (pipenv install psycopg2)

2019-04-10 Thread Sandip Nath
Try the command: pipenv install psycopg2-binary -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group,

Static image not getting displayed.

2019-04-02 Thread Sandip Nath
Downloaded an image of Django Reinhardt and saved it in static/images folder as django.jpeg. In the settings.py file created a variable STATIC_DIR and assigned it os.path.join(BASE_DIR, 'static') and again assign this variable to STATICFILES_DIR and kept the STATIC_URL as "/static/". In the ind

Re: Installation Question

2019-03-28 Thread Sandip Nath
Definitely will help you with your installation. But first reply to the questions. Because the remedy will depend on your reply. On Thursday, 28 March 2019 22:02:08 UTC+5:30, michael wrote: > > I've installed Python 3.7 which comes with pip installed. When I try to > create a virtualenv I get a

Re: Installation Question

2019-03-28 Thread Sandip Nath
Please try to be more informative when posting a question. Please answer this: 1. what os are you using? Windows/Mac/linux. 2. Do you have any other version(s) of Python installed in your system? On Thursday, 28 March 2019 22:02:08 UTC+5:30, michael wrote: > > I've installed Python 3.7 which come

How can I make users login to my site with facebook/twitter/google?

2019-03-05 Thread Sandip Nath
i want users to my site to log log in with facebook, twitter, google. While the development server supports only http fb/twitter/google expects https. What to do? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group a

How to hide the password of postgresql in settings.py

2018-11-30 Thread Sandip Nath
I am a newbie to Django. Using Postgresql for CRUD operations. Although its working but I need to write the password of my Postgresql server in the settings.py. How can I hide that without hampering the operation? -- You received this message because you are subscribed to the Google Groups "Dj