Re: E-comm live project

2024-05-06 Thread avdesh sharma
I am interested, +91-9650031844

On Mon, Mar 18, 2024 at 10:56 PM 1001_prabhjot Singh <
prabhjotbal...@gmail.com> wrote:

> so i am working on a full stack e-comm website and this project is really
> very big for me because it's a live project am using django for backend
> interested one's can send there number for WhatsApp group
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1101d563-726a-458e-ad9f-4b91bebf3132n%40googlegroups.com
> 
> .
>


-- 
Warm Regards,
Avdesh Kumar Sharma
9650031844

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF5Nfo6d%3DOi7ywzo8uYd5Zd5OzkdhbYoF4uEC-uspP5OZ0b0sg%40mail.gmail.com.


Re:

2022-09-26 Thread avdesh sharma
Please add me too - my whats app number - +91-9650031844

On Mon, Sep 26, 2022 at 6:23 PM Abdulfarid Olakunle 
wrote:

> Hello fellow developers, I will be creating a WhatsApp group chat later in
> the day, So I will like my fellow Python Django Developers to join the
> group. It will be much easier to discuss there and I will sacrifice myself
> out for anyone who need my service.
>
> God bless you all
> Enjoy your day
> Biliaminu
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BccuR0goa8Mu9MqNLyZtCAJedHKpVZ6pFfrpXKFJdjaRrgttQ%40mail.gmail.com
> 
> .
>


-- 
Warm Regards,
Avdesh Kumar Sharma
9650031844

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF5Nfo5z2gvtuCeMqpBsGNz9Yzyau%3D1DWTzh-KNzqpS8jv2OBQ%40mail.gmail.com.


Re: Help me - Django and python

2021-06-22 Thread avdesh sharma
what will happen if I change from elif to else ?
FYI - I checked it but still getting same error.

On Tue, Jun 22, 2021 at 2:51 PM DJANGO DEVELOPER 
wrote:

> your index.html
>
> 
> PASSWORD
>  class="form-control" name="password" placeholder="Enter Password">
> 
> 
> {% if login == 'inactive' %}
> User Inactive! Contact 
> Admin!
> {% elif login == 'invalid' %}
> line 32 username or password 
> Invalid
> {% endif%}
> {% if tab_error == True %}
> Invalid Tab Selected
> {% endif %}
>
>
>
> changed index.html
>
> 
> PASSWORD
>  class="form-control" name="password" placeholder="Enter Password" 
> value="{{login.password_field}}">
> 
> 
> {% if login == 'inactive' %}
> User Inactive! Contact 
> Admin!
> {% else %}
> line 32 username or password 
> Invalid
> {% endif%}
> {% if tab_error == True %}
> Invalid Tab Selected
> {% endif %}
>
>
> On Tue, Jun 22, 2021 at 2:16 PM DJANGO DEVELOPER 
> wrote:
>
>> by seeing your code, it seems that only the 'else' part is working. have
>> you provided value='{{dict_key.model_password_field}} in your html input
>> element?
>>
>> On Tue, Jun 22, 2021 at 12:52 PM avdesh sharma 
>> wrote:
>>
>>> Here is my View.py code
>>>
>>> from django.shortcuts import render
>>> from django.http import HttpResponseRedirect
>>> from django.urls import reverse
>>> from django.contrib.auth import authenticate, logout, login
>>> from django.contrib.auth.decorators import login_required
>>> from student.models import *
>>> from django.views.generic import TemplateView
>>> import datetime, random
>>> from django.contrib.auth.backends import BaseBackend
>>> # Create your views here.
>>>
>>>
>>> def index_view(request):
>>> if request.method == 'POST':
>>> username = request.POST.get('username')
>>> password = request.POST.get('password')
>>> tab_selected = request.POST.get('tab_selected')
>>>
>>> user = authenticate(username=username, password=password)
>>> print(user)
>>> if user:
>>> # if get_user(username):
>>> if user.is_active:
>>> login(request, user)
>>> request.session['username'] = username
>>> request.session['tab_selected'] = tab_selected
>>> if tab_selected == 'student_tab':
>>> return 
>>> HttpResponseRedirect(reverse('student:stud_home'))
>>> elif tab_selected == 'dept_tab':
>>> if username[:3] == 'hod':
>>> return 
>>> HttpResponseRedirect(reverse('student:hod_home'))
>>> else:
>>> return 
>>> HttpResponseRedirect(reverse('student:dep_home'))
>>> elif tab_selected == 'office_tab':
>>> return HttpResponseRedirect(reverse('student:off_home'))
>>> else:
>>> user_login = 'inactive'
>>> return render(request, 'student/index.html', 
>>> context={'login': user_login})
>>> else:
>>> user_login = 'invalid'
>>> return render(request, 'student/index.html', context={'login': 
>>> user_login})
>>> else:
>>> return render(request, 'student/index.html', context={})
>>>
>>>
>>> index.html
>>>
>>> 
>>> PASSWORD
>>> >> class="form-control" name="password" placeholder="Enter Password">
>>> 
>>> 
>>> {% if login == 'inactive' %}
>>> User Inactive! Contact 
>>> Admin!
>>> {% elif login == 'invalid' %}
>>> line 32 username or password 
>>> Invalid
>>> {% endif%}
>>> {% if tab_error == True %}
>>> Invalid Tab Selected
>>> {% endif %}
>>> 
>>>
>>>
>>> On Tue, Jun 22, 2021 at 11:55 AM DJANGO DEVELOPER <
>>> abubakarbr...@gmail.com> wrote:
>>>
>>>> can you please share your login view code?
>>>>
>>>> On Tue, Jun 22, 2021 at 10:12 AM avdesh sharma <
>>>> avdeshsharma...@gmail.com> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>&g

Re: Help me - Django and python

2021-06-22 Thread avdesh sharma
Here is my View.py code

from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.urls import reverse
from django.contrib.auth import authenticate, logout, login
from django.contrib.auth.decorators import login_required
from student.models import *
from django.views.generic import TemplateView
import datetime, random
from django.contrib.auth.backends import BaseBackend
# Create your views here.


def index_view(request):
if request.method == 'POST':
username = request.POST.get('username')
password = request.POST.get('password')
tab_selected = request.POST.get('tab_selected')

user = authenticate(username=username, password=password)
print(user)
if user:
# if get_user(username):
if user.is_active:
login(request, user)
request.session['username'] = username
request.session['tab_selected'] = tab_selected
if tab_selected == 'student_tab':
return HttpResponseRedirect(reverse('student:stud_home'))
elif tab_selected == 'dept_tab':
if username[:3] == 'hod':
return HttpResponseRedirect(reverse('student:hod_home'))
else:
return HttpResponseRedirect(reverse('student:dep_home'))
elif tab_selected == 'office_tab':
return HttpResponseRedirect(reverse('student:off_home'))
else:
user_login = 'inactive'
return render(request, 'student/index.html',
context={'login': user_login})
else:
user_login = 'invalid'
return render(request, 'student/index.html',
context={'login': user_login})
else:
return render(request, 'student/index.html', context={})


index.html


PASSWORD



{% if login == 'inactive' %}
User Inactive! Contact Admin!
{% elif login == 'invalid' %}
line 32 username or
password Invalid
{% endif%}
{% if tab_error == True %}
Invalid Tab Selected
{% endif %}



On Tue, Jun 22, 2021 at 11:55 AM DJANGO DEVELOPER 
wrote:

> can you please share your login view code?
>
> On Tue, Jun 22, 2021 at 10:12 AM avdesh sharma 
> wrote:
>
>> Hi All,
>>
>> I have an issue coming in my django code, even though the user id and
>> password is present in sqlite3 db still  the user is giving '*None'*
>> value
>> user = authenticate(username=username, password=password)
>>
>> and I am not able to login with user and throwing this error.
>>
>> [image: image.png]
>>
>>
>>
>>
>> --
>> Warm Regards,
>> Avdesh Kumar Sharma
>> 9650031844
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAF5Nfo65s-8c75FRkhF0rN7Sh0aUH6eKNBbQ--OMawNPCVX13w%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAF5Nfo65s-8c75FRkhF0rN7Sh0aUH6eKNBbQ--OMawNPCVX13w%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKPY9p%3DSQDqv12b8K52FuG9mp40SM9sLFAQ4meaPM37NJxM4zQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKPY9p%3DSQDqv12b8K52FuG9mp40SM9sLFAQ4meaPM37NJxM4zQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
Warm Regards,
Avdesh Kumar Sharma
9650031844

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF5Nfo7JkSetxb-kfGAjnRLJiCBG%2BvOEcgj38Oe0migcXEffvg%40mail.gmail.com.


Help me - Django and python

2021-06-21 Thread avdesh sharma
Hi All,

I have an issue coming in my django code, even though the user id and
password is present in sqlite3 db still  the user is giving '*None'* value
user = authenticate(username=username, password=password)

and I am not able to login with user and throwing this error.

[image: image.png]




-- 
Warm Regards,
Avdesh Kumar Sharma
9650031844

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF5Nfo65s-8c75FRkhF0rN7Sh0aUH6eKNBbQ--OMawNPCVX13w%40mail.gmail.com.


Re: Hiring Django developers in Mumbai

2021-06-18 Thread avdesh sharma
I can help you with Django.


With Regards,
Avdesh Kumar Sharma

On Sun, May 23, 2021 at 9:27 AM Sidhesh D  wrote:

> Hello,
>
> We are building a new website for kids to engage with our content and
> showcase their projects. We are looking for a mid-level full-stack
> developer.
>
>
> Please mail your resume to care...@curiositygym.com.
>
> - sidhesh
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a835a37b-a40d-4662-8ccc-c5abb8dc97f6n%40googlegroups.com
> 
> .
>


-- 
Warm Regards,
Avdesh Kumar Sharma
9650031844

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF5Nfo7Y1Gu54-e2XnTQNgwunzx_o-Vo40VQUgfeUvtnnYf5ug%40mail.gmail.com.


Need urgent help on Django project

2019-05-10 Thread avdesh sharma
Hi Django Users,


I have a registration form in which I wanted to enter only Indian Cities in
one fields as a dropdown and their respective states in another field
dropdown.
Could you please help me and provide me step by step guidance how to
achieve that as I am an intermediate level programmer.


Thanks in advance !

-- 
Warm Regards,
Avdesh Kumar Sharma
9650031844

-- 
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, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF5Nfo4c8%2Bcj6yDzOE9eAWqoRH_7OA5TUo14FL9SEZhJem%2BXuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.