Re: LogIn Class Based View

2022-05-28 Thread waqar khan
I think so problem cleaned data try if this pattern
em= form.cleaned_data['email']
ps= form.cleaned_data['password']
user = authenticate(request,email=em,password=ps)

this is way not solve problem share me error

On Fri, May 27, 2022 at 1:07 AM 'dtdave' via Django users <
django-users@googlegroups.com> wrote:

> I have this function based view which works perfectly but I would like to
> convert to a class based view but am stuck on how to do this:
> This is my fbv:
>
> def loginView(request):
> if request.method == 'POST':
> form = LoginForm(request.POST)
> if form.is_valid():
> cd = form.cleaned_data
> user = authenticate(request,
>email=cd['email'],
>password=cd['password'])
>
> if user is not None:
> login(request, user)
> if user.is_authenticated and user.is_client:
> return redirect('clients:detail') # Go to client
> dashboard
> elif user.is_authenticated and user.is_account_manager:
> return redirect('accountmanagers:detail') #Go to
> account manager dashboard
> else:
>return HttpResponse('Invalid login')
> else:
> # Invalid email or password. Handle as you wish
> form = LoginForm()
>
> return render(request, 'registration/login.html', {'form': form})
>
> I would appreciate any help.
>
> --
> 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/ea6c54f2-ecc0-407d-a296-e168d509a299n%40googlegroups.com
> 
> .
>

-- 
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%2B08CAN_YD3OF9PvBowO9cE9i5rzdVJ3fEqPnOuKDWMATLyvXA%40mail.gmail.com.


How To expertise Django templates Language(DTL)

2022-05-23 Thread waqar khan
How To expertise Django templates Language(DTL)

Kindy help me,
i am intermediate DTL , any budy suggest link , you  tube video or books.  

-- 
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/c0f39995-27c9-4b27-a766-37235da81e95n%40googlegroups.com.


Re: Need help in User log in, someone please help

2022-02-23 Thread waqar khan
share screen shot

On Wed, Feb 23, 2022 at 12:24 PM Antonis Christofides <
anto...@antonischristofides.com> wrote:

> You have this statement:
> user = User.objects.create_user(username=username, email=email,
> password = password)
>
> Just before this statement, you need to insert a statement that will
> enable you to examine the value of the "username" statement. Something like
> this:
>
> print(username)
> user = User.objects.create_user(username=username, email=email,
> password = password)
>
> This might or not might work properly with Django. What most Python
> programmers would do instead is this:
>
> import pdb; pdb.set_trace()
> user = User.objects.create_user(username=username, email=email,
> password = password)
>
> but for that you need to know how to use pdb. It's quite simple though
> tricky at first. Eventually you will need to learn it, however, so now
> would be a good time. Search the web.
>
> Regards,
>
> Antonis
>
> Antonis Christofides
> +30-6979924665 (mobile)
>
>
>
> On 22/02/2022 19.01, Raj wrote:
>
> I am trying to create register form access in django, but i am getting this
> * " ValueError at /registerThe given username must be set" error. *
> Kindly help me how can I fix this bug.
> please.
> *here is the code of the views.py file.--->*
> from msilib.schema import Feature
> from pyexpat.errors import messages
> from django.shortcuts import render, redirect
> from django.contrib.auth.models import User, auth
> from django.contrib import messages
> from django.http import HttpResponse
> from .models import Feature
> # Create your views here.
> def index(request):
> return render(request,'index.html',{'features': features})
> #=---register function---
> def register(request):
> if request.method == 'POST':
> username = request.POST.get('username')
> email = request.POST.get('email')
> password = request.POST.get('password')
> password2 = request.POST.get('password2')
> # username = request.POST['username']
> # email = request.POST['email']
> # password = request.POST['password']
> # password2 = request.POST['password2']
> if password == password2:
> if User.objects.filter(email = email).exists():
> messages.info(request, 'Email already has been used!')
> return redirect('register')
> elif User.objects.filter(username= username).exists():
> messages.info(request, 'Username already exist')
> return redirect('register')
> else:
> user = User.objects.create_user(username=username,
> email=email, password = password)
> user.save();
> print("User created")
> return redirect('login')  #check
> else:
> messages.info(request, 'Incorrect password')
> return redirect('register')
> else:
> return render(request, 'register.html')
> def login(request):
> if request.method == 'POST':
> # username = request.POST['username']
> # password = request.POST['password']
> username = request.POST.get('username')
> password = request.POST.get('password')
> user = auth.authenticate(username = username, password = password)
> if user is not None:
> auth.login(request, user)
> return redirect('/')
> else:
> messages.info(request,'Credential Invalid')
> return redirect('login')
> else:
> return render(request, 'login.html')
> *here is the SS of the error*[image: Screenshot (75).png]
> --
> 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/c7bcf4b5-f8e7-4f84-97df-02e4655e42f1n%40googlegroups.com
> 
> .
>
> --
> 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/cdfef3b3-37b4-801d-c53c-85d8176e3025%40antonischristofides.com
> 
> .
>

-- 
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 discu

Re: Name Fields values

2022-02-10 Thread waqar khan
I can help the in the project but you can detail describe me ,
yah project dono kaam krte

On Tue, Feb 8, 2022 at 6:35 AM raj program  wrote:

> https://docs.djangoproject.com/en/4.0/ref/models/meta/
>
> On Tue, Feb 8, 2022, 03:54 Feroz Ahmed  wrote:
>
>> Hi Everyone.
>> my personal project for marksheet is going on.
>>
>> all codes in views are fine
>>
>> fields are:
>> Name
>> English marks
>> Science Marks
>> Computer Marks
>> Avg
>> Sum
>> Total
>>
>> i need help , when i bring all stored record into template.
>>
>> *I need name field as list (dropdown list / Select list )and all the name
>> values.*
>> i try in views and and template ,, i not success .
>>
>> request for support
>>
>> Thanks
>>
>> --
>> 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/694ef31e-a254-4a1f-821d-44de88662681n%40googlegroups.com
>> 
>> .
>>
> --
> 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/CADvjn5XpMjUSr27hMSApSjbdRsXvGgp4FaU4DVvnQHUJD22igg%40mail.gmail.com
> 
> .
>

-- 
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%2B08CAP4PO-K55G_QKwKLcv0quY5XOTNzvGA7QianmhZdO_rJg%40mail.gmail.com.


Re: Command errored out with exit status 1:

2021-11-16 Thread waqar khan
you have anyDesk
I am share 989 185 350

On Tue, Nov 16, 2021 at 8:45 PM Kasper Laudrup 
wrote:

> On 16/11/2021 16.11, waqar khan wrote:
> > how use this file
> >
>
> Which file?
>
> --
> 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/becd4172-461b-bb98-2d86-525a9933c5f1%40stacktrace.dk
> .
>

-- 
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%2B08CAP9buAJM94743goSzPiaJLYcR6wEUs6xo1Pt1o2T9wEVA%40mail.gmail.com.


Re: Command errored out with exit status 1:

2021-11-16 Thread waqar khan
how use this file


On Tue, Nov 16, 2021 at 8:34 PM Kasper Laudrup 
wrote:

> On 16/11/2021 15.54, waqar khan wrote:
> > what to do?
> >
>
> Read the error message. It tells you what to do.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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/59a3c595-0090-51f4-268f-68e946ce0c88%40stacktrace.dk
> .
>

-- 
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%2B08CANN1CuhBQqf7RkpodirZRgaNyzyZbV0XPhVs3MqveWS5w%40mail.gmail.com.


Re: Command errored out with exit status 1:

2021-11-16 Thread waqar khan
what to do?

On Tue, Nov 16, 2021 at 8:19 PM Kasper Laudrup 
wrote:

> On 16/11/2021 14.06, waqar khan wrote:
> > subject :- pip install mysqlclient   and my python version 3.10
> >
> > problem:- Command errored out with exit status 1:
> > > how this fix solutions
> >
>
> A solution is suggested in the error output right after "error:". Have
> you tried doing that?
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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/6845f81c-f873-19fc-390c-432c559f4bdd%40stacktrace.dk
> .
>

-- 
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%2B08CAN9J_bj97y86ML0SN%2BGCi47K_kTiM3LZ2WdYyOCn-1tWw%40mail.gmail.com.


Re: Hi, i had question in django rest framework

2021-10-30 Thread waqar khan
I am waqar khan
I am from Maharashtra in thane city
i am looking for job python web developer
Please recommend any job.


On Fri, Oct 29, 2021 at 10:16 PM taxijjang  wrote:

> Hello I am a backend developer who is developing python django.
> I sent you an e-mail because I had a question.
> Currently, my company provides web services using pure django.
> As the company grew bigger and bigger,
> the direction of development was decided through api communication by
> separating the front and backend from one django project,
> and we are trying to proceed with api communication using the django rest
> framework.
> At this time, do I have to pay the usage fee when I want to develop it
> using the django rest framework for commercial purposes in the project
> currently being serviced by the company?
> Or if you can use it without paying the usage fee, do you have to disclose
> the source or any restrictions under the license?
>
> --
> 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/ffda96a9-7ef1-4318-b895-aa4d5e61d80dn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/ffda96a9-7ef1-4318-b895-aa4d5e61d80dn%40googlegroups.com?utm_medium=email&utm_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/CA%2B08CANh%3D4FzD-35QfDVs1xyrPAioEYq%2BqwXDZWLqM8%3DkUC6mA%40mail.gmail.com.


Re: TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

2021-10-30 Thread waqar khan
close round bracket

*class Meta:*


On Fri, Oct 29, 2021 at 7:36 PM Sabbir Hasan Munna <
sabbirhasan2...@gmail.com> wrote:

>
> [image: Annotation 2021-10-29 081743.png]
>
> --
> 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/f7d8a010-0f68-437c-b3df-ec99a4460aafn%40googlegroups.com
> 
> .
>

-- 
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%2B08CAOqLzjbRa9b_knzsZGqV9h88_G6B5cZjytRCvXDH7SDxA%40mail.gmail.com.


Re: Celery tutorial

2021-10-26 Thread waqar khan
codewithharry
geekyshows
dennis lvy

This is youtube channel name


On Tue, Oct 26, 2021 at 9:34 PM parag gupta  wrote:

> Is there any good celery tutorial that might help?
>
> --
> 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%2BepXomxE3Dd5_aX0esDnXMdwBOOfr7f1P9PTosQSC4xLidAEA%40mail.gmail.com
> 
> .
>

-- 
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%2B08CAOUjAzsm-f1tyck_Akdm5u0nK8r9ugxU6oNQVy0QzmKzA%40mail.gmail.com.


Re: help

2021-10-26 Thread waqar khan
pip uninstall django



On Tue, Oct 26, 2021 at 6:41 PM Kasper Laudrup 
wrote:

> On 26/10/2021 13.53, machine learning wrote:
> > Uninstall it and install it again.
> >
>
> What?
>
> I think you're replying to the wrong person, but what do you think
> uninstalling and reinstalling would achieve?
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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/091ba497-c19c-9c0b-b73d-1c2886fe4427%40stacktrace.dk
> .
>

-- 
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%2B08CAOV%3D2%2BaBaTQ5mJEZ9L9XOxo8mTH9HWfGfoUjNauVpqe1Q%40mail.gmail.com.


ValueError: Field 'stufees' expected a number but got 'None'.

2021-07-01 Thread waqar khan
I have create model class and run success fully
But Issues add field like stufees ,
stufess=models.FloatField(),
right value default ,
as soon as reply me 

-- 
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/5ac34a99-30c8-4dbe-80f6-0700d938709dn%40googlegroups.com.


Re: Login Default admin page

2020-10-26 Thread waqar khan
i have many small project all my project same issues ,
before properly work ,
How can solve this is my problems

On Sun, Oct 25, 2020 at 9:54 PM waqar khan  wrote:

> I have created createsuperuser
>
> but login time Error Show
> 403 Forbidden
> How can solve this problem
>
> --
> 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/7178e621-30a9-48ad-9b1f-81fc2a8bc38dn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/7178e621-30a9-48ad-9b1f-81fc2a8bc38dn%40googlegroups.com?utm_medium=email&utm_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/CA%2B08CAMMBt2%3DvFkgkJG1fEtHymjT0DNY6PAd5GMBNf4metKTKg%40mail.gmail.com.


Login Default admin page

2020-10-25 Thread waqar khan
I have created createsuperuser 

but login time Error Show
403 Forbidden 
How can solve this problem

-- 
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/7178e621-30a9-48ad-9b1f-81fc2a8bc38dn%40googlegroups.com.


issues 403 Forbidden

2020-10-24 Thread waqar khan
I have already write html file in form {%  csrf_token  %}
but not working

Html file:
{% extends 'base.html' %}

{% block content %}

{% load cart %}






ALL Products
{% for category in categories %}
{{category.name}}
{% endfor %}







{% for product in products %}



{{product.name}}
{{product.price}}
{{ product|is_in_cart:request.session.cart }}



{% if product|is_in_cart:request.session.cart %}


{% csrf_token %}




{{product|cart_quantity:request.session.cart}} 
in Cart

{% csrf_token %}




{% else %}

{% csrf_token %}



{% endif %}


{% endfor %}





{% endblock content %}


*problems*
[image: 1.jpg]


-- 
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/ab1f6e7d-2798-4ec0-adeb-09f97a4bb727n%40googlegroups.com.


Re: Static files not work

2020-10-01 Thread waqar khan
Thank you bro.
I am fresher ,
How to expert django framework any tips ..

On Thu, Oct 1, 2020 at 5:58 PM MUGOYA DIHFAHSIH 
wrote:

> instead of loading staticfiles you use {{ load static}}
>
> On Thu, 1 Oct 2020 at 15:23, kkwaq...@gmail.com 
> wrote:
>
>> *Error*
>>
>> *[image: 1.jpg]*
>>
>> *Error line number 2*
>>
>> *[image: 2.jpg]*
>>
>>
>> *settingspy*
>>
>> *[image: 3.jpg]*
>>
>> *html file*
>>
>> *[image: 4.jpg]*
>>
>> --
>> 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/35152588-7c0e-44e3-b7bc-fc48bfa81b37n%40googlegroups.com
>> 
>> .
>>
> --
> 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/CAP%3DJD9yG%3DkcarU-dUCCQZh-%3DS9empaEqRj7EY3huivCWmcXM-Q%40mail.gmail.com
> 
> .
>

-- 
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%2B08CAO71_9LCsrQH%2BSuhLwEynsibVjOCrJrN3VJY3qa%3DNH8sQ%40mail.gmail.com.


Re: How Upload Image Html File To save DataBase

2020-09-16 Thread waqar khan
[image: s.JPG]

Please Guys Reply Me .

On Wed, Sep 16, 2020 at 1:36 PM waqar khan  wrote:

> *I am Using dataBase Sql*
>
> On Wed, Sep 16, 2020 at 1:21 AM kkwaq...@gmail.com 
> wrote:
>
>> *Problem :- I have Create table and add ImageField , i wanna upload_image
>> Front-end  and save database.*.
>>
>>
>> html file: But Image Not save
>> *I am upload using database*
>>
>>
>> [image: u.JPG]
>> *models.py*
>>
>> [image: i.JPG]
>>
>> Html Coding file
>> [image: j.JPG]
>>
>> *urls.py*
>>
>> [image: g.JPG]
>>
>>
>>
>>
>> --
>> 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/7bcbd386-354a-40fd-87dc-2e9d83b11fa6n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/7bcbd386-354a-40fd-87dc-2e9d83b11fa6n%40googlegroups.com?utm_medium=email&utm_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/CA%2B08CAP%2BArs1iDNwuCHRfk8iEvp8dQZpNRh%3DVneaQa_vcLWZpg%40mail.gmail.com.


Re: How Upload Image Html File To save DataBase

2020-09-16 Thread waqar khan
*I am Using dataBase Sql*

On Wed, Sep 16, 2020 at 1:21 AM kkwaq...@gmail.com 
wrote:

> *Problem :- I have Create table and add ImageField , i wanna upload_image
> Front-end  and save database.*.
>
>
> html file: But Image Not save
> *I am upload using database*
>
>
> [image: u.JPG]
> *models.py*
>
> [image: i.JPG]
>
> Html Coding file
> [image: j.JPG]
>
> *urls.py*
>
> [image: g.JPG]
>
>
>
>
> --
> 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/7bcbd386-354a-40fd-87dc-2e9d83b11fa6n%40googlegroups.com
> 
> .
>

-- 
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%2B08CAM3piPUv1gzBJq70nBQDF--6oHvEn%2B8YBujk6ADJLssTA%40mail.gmail.com.


Re: Change Date Formate

2020-09-15 Thread waqar khan
Thanks guys you code 100% work

On Tue, Sep 15, 2020 at 6:52 PM Niraj Panchasara 
wrote:

> Y for 
> m for mm
> d for dd
>
> as per you needed, try this out in html with django template code
>
> {{you_date_field|date:'d/m/Y'}}
>
>
> On Tuesday, September 15, 2020 at 4:29:41 PM UTC+5:30 mailto...@gmail.com
> wrote:
>
>> {{you_date_field|date:'Y-m-d'}}
>>
>>
>> On Tue, Sep 15, 2020 at 3:52 PM kkwaq...@gmail.com 
>> wrote:
>>
>>> How to change date format in django (mmdd to ddmm)
>>>
>>> [image: p.jpg]
>>> [image: p1.jpg]
>>> how to change like this dd/mm/
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/fd9f1b17-cc30-43f9-9855-c7c5f68e7800n%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Regards,
>> Danish
>>
> --
> 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/858d0719-4268-472e-b7c7-735c9bdc5f91n%40googlegroups.com
> 
> .
>

-- 
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%2B08CAOaumqqw6NRy2-gto5%3D01DT7RFaD_kTN0_Avc97Cc%2BT5g%40mail.gmail.com.


static folder does not work

2020-07-30 Thread waqar khan
*I have created Django Project.*
*Project Name :- NoteBlog*
*Application-Name :- BlogApp*

*Problem:-  I have created inside application static folder and i am give 
perfect path But does not work style.css file , How can achieve  this 
problem.*




*My Project Structure*


[image: p.jpg]


 

 





*style.css file*

[image: s.jpg]



*HTML File base.html  this is basic html file*


[image: j1.jpg]





*I am extends file base.html file extend suuccess But style.css file does 
not work *
*Home.html*

[image: p2.jpg]


-- 
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/b176f4c0-d06a-4e27-8071-1286f739a98bo%40googlegroups.com.


Retrieve Data in DataBaeses

2020-06-20 Thread waqar khan
I have recently start in Django
I have create a simple project Registration Form in save database  
Mysqlite3,
But, how to retrieve data database show in html file table formet ,

Please any guide me! 

-- 
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/6c8c6f44-8696-4ba1-989d-74881e7df835o%40googlegroups.com.


paytm page not display

2020-04-28 Thread waqar khan
My paytm file not working inside form tag defined link paytm ingratiation 
order not success but save databases,
how can solve problem 

-- 
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/cf012069-5c88-45fc-a1ba-914771cc4f94%40googlegroups.com.


Re: The empty path didn't match

2020-04-11 Thread waqar khan
you can start  server and open address bar

type google Chrome:- 127.0.0.1:8000/$/

On Thu, Apr 9, 2020 at 11:01 PM JEGATHEESWARAN SUNDARAVADIVEL <
jagatheesjo...@gmail.com> wrote:

> In your urlpatterns remove $/ just keep empty “ “ for views.homepage
>
> Thanks
> Jegatheeswaran
>
> On Thu, 9 Apr 2020 at 22:56, Vinay Kumar  wrote:
>
>> Hello all !
>>
>> I am new in Django technology.
>>
>> I am trying to make a small project just to hands on django , but
>> unfortunately i am getting error
>>
>> Page not found (404)
>> Request Method: GET
>> Request URL: http://127.0.0.1:8000/
>>
>> Using the URLconf defined in durganewsproject.urls, Django tried these
>> URL patterns, in this order:
>>
>>1. admin/
>>2. $/
>>
>> The empty path didn't match any of these.
>>
>> I have attached the screenshots of the pages..
>>
>> kindly help me out with this issue , i have tried many times with
>> different ways but getting the same error ..
>>
>>
>> --
>> 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/c6b0e587-a09b-433a-b575-0e4cd21446ac%40googlegroups.com
>> 
>> .
>>
> --
> JAGATHEESWARAN
>
> --
> 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/CAHM%2BSVo5w7KPSD3p39SxVszXGPPxvX7sTcFYD--40u69QpHwew%40mail.gmail.com
> 
> .
>

-- 
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/CAJO58e4W7zM0ph%3DOeE_ita-Mf%2BG13QVU9PsLghEK9KrLGOTwiA%40mail.gmail.com.


Re: Login Not working

2020-04-08 Thread waqar khan
Thank You Very Much


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, Apr 7, 2020 at 5:50 PM shengdao zhou <2692...@sina.com> wrote:

> In *onevideos.zip\onevideos\userproject\home\views.py 17:28*, if the
> login is successful, *login.html *will still be returned, which should be
> replaced with *index.html*.
>
> [image: views.py 17.png]
>
>
> 在 2020年4月6日星期一 UTC+8下午9:35:33,kkwaqar786写道:
>>
>> Loggin not working ,
>>
>> Please Help Me,
>>
>> Admin:
>>
>> username:-admin
>> password:-admin
>>
>> User:
>>
>> username:-waqar
>> password:-Test@123
>>
>>
>>
>> Please Solved my Problems ,Django groups
>>
>> --
> 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/aefcd717-2619-4f21-9357-70d7fb3b7d97%40googlegroups.com
> 
> .
>

-- 
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/CAJO58e5X0sx0iEic1uP_ZUF9S-xLCaD_y6w_BtXG%3DGFe1QcKTw%40mail.gmail.com.


Re: Working with forms

2020-04-06 Thread waqar khan
hey
I am waqar,
 i have created user form but not working
please solve my problems

admin:
username:-admin
password:-admin

user:
username:-waqar
password:-Test@123



On Mon, Apr 6, 2020 at 10:55 AM Ifeanyi Chielo 
wrote:

> Thanks to you all, I finally resolved the matter. I discovered it was just
> of a mix up of ModelForm and ordinary Django forms, though I enjoyed the
> teething challenges as a new django user
> Dr. Chielo C. Ifeanyi
> Chief Programmer,
> Head Webometrics Section
> ICT Unit, UNN
> 08032366433, 08154804230
> ifeanyi.chi...@unn.edu.ng
> http://www.unn.edu.ng/users/ifeanyichielo 
>
>
>
> On Mon, Apr 6, 2020 at 12:04 AM Maro Okegbero Samuel <
> marookegb...@gmail.com> wrote:
>
>> Port your code back to the initial state it was when you asked the
>> question and on the template change
>>  *{{form}}* to *{{form.as_p}}*
>>
>>
>>> --
>> 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/063525f8-c177-47d6-b849-52240522ae4f%40googlegroups.com
>> 
>> .
>>
> --
> 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/CAOcS8H2%2BtMxewMDAm6s%3DAQB6L%2BYCMTUaPHpyrr5A20u4z1vP2w%40mail.gmail.com
> 
> .
>

-- 
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/CAJO58e7%3Dz%2Bmr7EY7Ef%2BTqfF7UeDGD%3Do_rwwTqRa_bSWZHNHGtw%40mail.gmail.com.
<>