YOu can use decorator:
@login_required before start of the function/
On Monday, 6 April 2020 19:05:33 UTC+5:30, kkwaqar786 wrote:
>
> Loggin not working ,
>
> Please Help Me,
>
> Admin:
>
> username:-admin
> password:-admin
>
> User:
>
> username:-waqar
> password:-Test@123
>
>
>
> Please Solved m
You can use decorator before start of view:
No need to write different view for user and admin.
@login_required(*redirect_field_name='next'*, *login_url=None)*
On Monday, 6 April 2020 19:05:33 UTC+5:30, kkwaqar786 wrote:
>
> Loggin not working ,
>
> Please Help Me,
>
> Admin:
>
> username:-admin
On Tuesday, 7 April 2020 18:49:36 UTC+5:30, Akshat Zala wrote:
>
> You can use decorator before start of view:
> No need to write different view for user and admin.
>
> @login_required(*redirect_field_name='next'*, *login_url=None)*
>
> On Monday, 6 April 2020 19:0
I am interested. Do let me know what is to be done.
Regards.
Akshat
On Monday, 11 May 2020 11:36:23 UTC+5:30, maninder singh Kumar wrote:
>
> Dear group members,
>
> I have a django project available the flowcharts of which will be up in 1
> week. Write or call if interested ?
>
> Willy
> +9
Which version of django are you using?
On Saturday, 9 May 2020 19:21:53 UTC+5:30, Sunday Iyanu Ajayi wrote:
>
> I have but I still get error
>
> [image: image.png]
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunne...@gmail.com *
>
>
>
> On Sat, May 9, 2020 at 1:50 PM ola neat >
> wrote:
>
>> Halo,
If using django3.0.0, please down grade the django.VERSION to django==2.2
On Wednesday, 13 May 2020 20:46:17 UTC+5:30, Akshat Zala wrote:
>
> Which version of django are you using?
>
> On Saturday, 9 May 2020 19:21:53 UTC+5:30, Sunday Iyanu Ajayi wrote:
>>
>> I ha
If possible, please downgrade DJ version to 2.2 LTS and try again to execute
the code.
--
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...@
If possible, please downgrade the django version to django2.2 LTS and try
again...
--
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...@goog
Did the downgrading django==2.2 LTS worked?
On Friday, 15 May 2020 00:40:42 UTC+5:30, Sunday Iyanu Ajayi wrote:
>
> Thank you. I will do that
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunne...@gmail.com *
>
>
>
> On Thu, May 14, 2020 at 3:58 AM Akshat Zala > w
from_user, to_user and status
share details have fields like from_user, to_user and is_friend and
shared_content.
/user/models.py contains Profile model with user image date & time details
Thanks for help,
Akshat Zala
akshatz...@gmail.com
--
You received this message because you
.
Pending job is to Share the post with friend.
10. Now it is showing all the post to every registered user.
Regards,
Akshat Zala
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving e
I am facing issue in quering the database.
I cannot write join query in django orm.
On Sunday, 17 May 2020 18:04:47 UTC+5:30, Akshat Zala wrote:
>
> I wish to share the post with friends in django application.
>
> My project flow chart is as follows:
>
>
> 1. User register
In urls.py of the project directory:
path('login/', auth_views.LoginView.
as_view(template_name='users/login.html', redirect_authenticated_user=True),
name='login'),
On Monday, 17 December 2012 18:39:25 UTC+5:30, ke1g wrote:
>
>
>
> On Mon, Dec 17, 2012 at 5:14 AM, Ashish Sable > wrote:
>
>>
>>
You need to save in ~/.profile
On Tuesday, 19 May 2020 10:26:17 UTC+5:30, Anirudh choudhary wrote:
>
> Hello everyone
>
> I am hosting my website on google cloud platform on Ubuntu VM instance. I
> cannot find a way to set the environment variable in the machine
>
> Like when I type on my loca
You can refer the link below:
1. https://cloud.google.com/community/tutorials/secrets-manager-python
On Tuesday, 19 May 2020 10:26:17 UTC+5:30, Anirudh choudhary wrote:
>
> Hello everyone
>
> I am hosting my website on google cloud platform on Ubuntu VM instance. I
> cannot find a way to set t
You can refer to the link below:
1. https://stackoverflow.com/a/50521563/4511992
On Friday, 15 May 2020 19:46:52 UTC+5:30, Gopesh Shriwas wrote:
>
> Hi All,
>
> Can anybody help me on using couchdb as a django backend database. I went
> though with multiple options available on the internet like
I agree with Vishesh, You require api key which needs to be in settings.py
file
On Tuesday, 19 May 2020 20:43:17 UTC+5:30, Vishesh Mangla wrote:
>
> Your question is not clear to me. What exactly do you want ?You do not
> require django to go to a site , rather you require a hyperlink.
>
>
>
>
You can study https://developer.paypal.com/docs/api/quickstart/
On Wednesday, 20 May 2020 08:57:06 UTC+5:30, Akshat Zala wrote:
>
> I agree with Vishesh, You require api key which needs to be in settings.py
> file
>
> On Tuesday, 19 May 2020 20:43:17 UTC+5:30, Vishesh Mangla wr
You can install the following package and study the documentation:
1. https://pypi.org/project/django-wepay/
On Tuesday, 19 May 2020 22:56:24 UTC+5:30, Shyam Acharjya wrote:
>
> greetings,
>
> has anyone here have any prior experience in integrating wepay to a django
> site? if yes please share
I have Posts and Friends model in blog and friend apps respectively.
In friend model: I have fromuser, touser, and status as fields.
In Posts model, I have title, content, author_id anddatecreated and
modified date.
On Monday, 18 May 2020 20:12:14 UTC+5:30, Akshat Zala wrote:
>
> I am
Hey,
Did the solution worked?
On Tuesday, 19 May 2020 10:37:51 UTC+5:30, Akshat Zala wrote:
>
> In urls.py of the project directory:
>
> path('login/', auth_views.LoginView.
> as_view(template_name='users/login.html', redirect_authenticated_user=True
>
Hi John
I agree with Kasper.
Regards,
Akshat
On Thursday, 28 May 2020 01:31:03 UTC+5:30, Kasper Laudrup wrote:
>
> Hi John,
>
> On 27/05/2020 19.06, John McClain wrote:
> > Hello All,
> >
> > Can anyone provide a method to split payments via paypal. I basically
> > want to earn a commissi
lif num > page_obj.number|add:'-4' and num < page_obj.number|add:'4' %}
{{ num }}
{% endif %}
{% endfor %}
{% if page_obj.has_next %}
arrow_right
Last
{% endif %}
Thanks
Akshat Zala
--
You received this message because you are subscribed to the Google Groups
"Djang
On Saturday, 30 May 2020 19:20:47 UTC+5:30, Akshat Zala wrote:
>
> Hello,
>
> I am finding it difficult to paginate through all the posts
>
> My views.py :
>
> @login_required
> def home_view(request):
> """Display all the post of frie
t; Where have you defined the variable is_paginated? Is it present in the
> context?
>
> On Sat, May 30, 2020, 8:53 PM maninder singh Kumar > wrote:
>
>> Views.py looks fine !
>>
>> regards
>> willy
>>
>>
>> On Sat, May 30, 2020 at 7:22 PM Aks
Dear Sir,
it shows all the text on all the pages.
if there are total 5 posts, then it shows all the 5 posts on all the pages.
Thanks,
Akshat Zala
On Saturday, 30 May 2020 20:54:35 UTC+5:30, maninder singh Kumar wrote:
>
> Views.py looks fine !
>
> regards
> willy
>
>
&
Interested in working
My whatsapp number: +91 9619073241
--
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
my view to display friendlist:
def friend_list(request):
context = {
'results_from_user':
Friend.objects.filter(from_user=request.user),
'results_to_user': Friend.to_user
}
return render(request, 'friend/friend_list.html', context)
my templat
28 matches
Mail list logo