Re: Login Not working

2020-04-07 Thread Akshat Zala
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 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/7da5ce8c-c0bc-400e-94d8-f481e145ddaf%40googlegroups.com.


Re: Login Not working

2020-04-07 Thread Akshat Zala
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
> 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/0b09b2ce-5152-4d59-ac79-affaabe51cbf%40googlegroups.com.


Re: Login Not working

2020-04-07 Thread Akshat Zala


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: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 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/39e239db-1490-49b2-a1d1-cfb07b18d554%40googlegroups.com.


Re: Project available

2020-05-11 Thread Akshat Zala
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 
> +91 9910669700 
> wi...@kawapeople.com  
>
> Sent from my iPad

-- 
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/5c8a86af-12b6-458f-b496-dacada4782c6%40googlegroups.com.


Re: Deploying Django Project on heroku

2020-05-13 Thread Akshat Zala
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, i feel if u follow the step in this article 
>> https://www.codementor.io/@jamesezechukwu/how-to-deploy-django-app-on-heroku-dtsee04d4
>>  
>> u should b good 
>>
>> On Sat, May 9, 2020, 01:15 Sunday Iyanu Ajayi > > wrote:
>>
>>> Hi Motaz, 
>>> Thank you so much.
>>> Is today cool?
>>> What time (in GMT+1) will be cool for you?
>>>
>>> *AJAYI Sunday *
>>> (+234) 806 771 5394
>>> *sunne...@gmail.com *
>>>
>>>
>>>
>>> On Sun, May 3, 2020 at 11:05 PM Motaz Hejaze >> > wrote:
>>>
 Let us have a zoom meeting to fix it

 On Sun, 3 May 2020, 11:45 pm Sunday Iyanu Ajayi, >>> > wrote:

> I have but it keeps telling  that it is misconfigured 
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunne...@gmail.com *
>
>
>
> On Sat, Apr 25, 2020 at 3:17 PM sagar ninave  > wrote:
>
>> Do you installed whitenoise package 
>> If not then run this command 
>> Pip insatll whitenoise
>>
>> On Sat, 25 Apr 2020 at 7:43 PM, Sunday Iyanu Ajayi <
>> sunne...@gmail.com > wrote:
>>
>>> I have spent over 2weeks on deploying a django project to heroku but 
>>> I keep getting error messages such as :
>>>
>>> My WhiteNoise is not configured  and I have followed all the 
>>> tutorials recommended  and yet same thing.
>>>
>>> Please who has a guide I can follow that is very updated.
>>> Thank you.
>>> *AJAYI Sunday *
>>> (+234) 806 771 5394
>>> *sunne...@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...@googlegroups.com .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com
>>>  
>>> 
>>> .
>>>
>> -- 
>>
>> 
>>  
>> sagar ninave
>> about.me/sagarninave 
>> 
>>  
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAA6pdZ9fsGj3y%3DNVVQ_oCX9hY5DbLHtPVLM-nPhWYxpE4Qsi7w%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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAKYSAw2hYQGRYYZRB%3D7ZNJJJ-1OY2ykShsPam9xiRc-8M4BQJg%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...@googlegroups.com .
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/CAHV4E-dLr30ycFTo9tccTmKW74rvDA%3D0Oks8NqAVez0Tiyzocg%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...@googlegroups.com .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAKYSAw2PWEmow%3DbA3wAZ6MnTKkRdMAbq7SN%3D6L4gAcSS0gw1eA%40mail.gmail.com
>>>  
>>> 

Re: Deploying Django Project on heroku

2020-05-13 Thread Akshat Zala
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 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, i feel if u follow the step in this article 
>>> https://www.codementor.io/@jamesezechukwu/how-to-deploy-django-app-on-heroku-dtsee04d4
>>>  
>>> u should b good 
>>>
>>> On Sat, May 9, 2020, 01:15 Sunday Iyanu Ajayi  
>>> wrote:
>>>
>>>> Hi Motaz, 
>>>> Thank you so much.
>>>> Is today cool?
>>>> What time (in GMT+1) will be cool for you?
>>>>
>>>> *AJAYI Sunday *
>>>> (+234) 806 771 5394
>>>> *sunne...@gmail.com*
>>>>
>>>>
>>>>
>>>> On Sun, May 3, 2020 at 11:05 PM Motaz Hejaze  wrote:
>>>>
>>>>> Let us have a zoom meeting to fix it
>>>>>
>>>>> On Sun, 3 May 2020, 11:45 pm Sunday Iyanu Ajayi,  
>>>>> wrote:
>>>>>
>>>>>> I have but it keeps telling  that it is misconfigured 
>>>>>> *AJAYI Sunday *
>>>>>> (+234) 806 771 5394
>>>>>> *sunne...@gmail.com*
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Sat, Apr 25, 2020 at 3:17 PM sagar ninave  
>>>>>> wrote:
>>>>>>
>>>>>>> Do you installed whitenoise package 
>>>>>>> If not then run this command 
>>>>>>> Pip insatll whitenoise
>>>>>>>
>>>>>>> On Sat, 25 Apr 2020 at 7:43 PM, Sunday Iyanu Ajayi <
>>>>>>> sunne...@gmail.com> wrote:
>>>>>>>
>>>>>>>> I have spent over 2weeks on deploying a django project to heroku 
>>>>>>>> but I keep getting error messages such as :
>>>>>>>>
>>>>>>>> My WhiteNoise is not configured  and I have followed all the 
>>>>>>>> tutorials recommended  and yet same thing.
>>>>>>>>
>>>>>>>> Please who has a guide I can follow that is very updated.
>>>>>>>> Thank you.
>>>>>>>> *AJAYI Sunday *
>>>>>>>> (+234) 806 771 5394
>>>>>>>> *sunne...@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...@googlegroups.com.
>>>>>>>> To view this discussion on the web visit 
>>>>>>>> https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com
>>>>>>>>  
>>>>>>>> <https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>>
>>>>>>> -- 
>>>>>>>
>>>>>>> <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
>>>>>>>  
>>>>>>> sagar ninave
>>>>>>> about.me/sagarninave 
>>>>>>> <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
>>>>>>>  
>>>>>>>
>>>>>>> -- 
>>>>>>> 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...@googlegroups.com.
>>>>>>> To view this discussion on the web visit 
>>>>>>> https://groups.goog

Re: Deploying Django Project on heroku

2020-05-13 Thread Akshat Zala
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/892a5df3-2fc0-4a0c-98b5-9f8d1bb6990a%40googlegroups.com.


Re: Deploying Django Project on heroku

2020-05-13 Thread Akshat Zala
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/536aaeb3-f6a7-4dcf-b856-927a79b3a08f%40googlegroups.com.


Re: Deploying Django Project on heroku

2020-05-16 Thread Akshat Zala
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  > wrote:
>
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/536aaeb3-f6a7-4dcf-b856-927a79b3a08f%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/748afd17-f2be-4380-9c3d-8e0d11d35c91%40googlegroups.com.


How to share the post with friends in django?

2020-05-16 Thread Akshat Zala
I have researched many questions on stackoverflow but failed to solve.

There are 3 different apps :

├── blog
│   ├── admin.py
│   ├── apps.py
│   ├── forms.py
│   ├── migrations
│   │   ├── 0001_initial.py
│   │   ├── 0002_auto_20200516_1052.py
│   │   ├── 0003_share.py
│   │   └── __init__.py
│   ├── models.py
│   ├── signals.py
│   ├── static
│   │   └── blog
│   │   └── main.css
│   ├── templates
│   │   └── blog
│   │   ├── about.html
│   │   ├── base.html
│   │   ├── home.html
│   │   ├── post_draft_list.html
│   │   ├── posts_confirm_delete.html
│   │   ├── posts_detail.html
│   │   ├── posts_form.html
│   │   └── user_posts.html
│   ├── tests.py
│   ├── urls.py
│   ├── validators.py
│   └── views.py

├── friend
│   ├── admin.py
│   ├── apps.py
│   ├── __init__.py
│   ├── migrations
│   │   ├── 0001_initial.py
│   │   ├── 0002_delete_share.py
│   │   └── __init__.py
│   ├── models.py
│   ├── templates
│   │   └── friend
│   │   ├── accept_friend.html
│   │   ├── add_friend.html
│   │   ├── friend_list.html
│   │   ├── reject_friend.html
│   │   └── sent_friend_request_success.html
│   ├── tests.py
│   ├── urls.py
│   └── views.py
│
|── users
├── admin.py
├── apps.py
├── forms.py
├── migrations
│   ├── 0001_initial.py
│   ├── __init__.py
│   └── __pycache__
│   ├── 0001_initial.cpython-36.pyc
│   └── __init__.cpython-36.pyc
├── models.py
├── signals.py
├── templates
│   └── users
│   ├── account_activate.html
│   ├── activated_account.html
│   ├── email_sent.html
│   ├── invalid_link.html
│   ├── login.html
│   ├── logout.html
│   ├── no_such_user.html
│   ├── password_reset_complete.html
│   ├── password_reset_confirm.html
│   ├── password_reset_done.html
│   ├── password_reset.html
│   ├── profile.html
│   ├── register.html
│   ├── search.html
│   ├── search_profile.html
│   └── view_profile.html
├── tests.py
├── token_generator.py
├── urls.py
└── views.py
This is folder structure.

/blog/models.py contains blog details.
blog_details contains fields like title, content,time details image and 
video.

/friend/models.py contains friends details and share model.
friend details have fields like  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 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/68fa3dc7-7b3d-4efb-8d44-ab5e60eb32e5%40googlegroups.com.


I am facing issues in sharing module.

2020-05-17 Thread Akshat Zala
I wish to share the post with friends in django application.

My project flow chart is as follows:


1. User registers for an account.
2. User will recieve the email confirmation
3. By clicking on the link in email , he gets redirected to login page, 
where he can login and he will see account successfully activated.

4. He/She can create /update/delete  the post.
5. He can view his profile,and update the profile.

6. He can search for friends through search bar by either of their first 
name, last name, username and email address.
7. Results will be seen in tabular format.
8. By clicking on the hyperlink in add friend column a mail will be sent to 
the friend_request with a hyperlink containing a template with 
accept/reject buttons.
9. By clicking on either of the buttons, status of friend_request will be 
updated accordingly  in the database as well as in the friend list template.

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 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/b6de9cbb-608d-44ad-a9c7-bf5b0e2cd9bd%40googlegroups.com.


Re: I am facing issues in sharing module.

2020-05-18 Thread Akshat Zala
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 registers for an account.
> 2. User will recieve the email confirmation
> 3. By clicking on the link in email , he gets redirected to login page, 
> where he can login and he will see account successfully activated.
>
> 4. He/She can create /update/delete  the post.
> 5. He can view his profile,and update the profile.
>
> 6. He can search for friends through search bar by either of their first 
> name, last name, username and email address.
> 7. Results will be seen in tabular format.
> 8. By clicking on the hyperlink in add friend column a mail will be sent 
> to the friend_request with a hyperlink containing a template with 
> accept/reject buttons.
> 9. By clicking on either of the buttons, status of friend_request will be 
> updated accordingly  in the database as well as in the friend list template.
>
> 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 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/bf437ec1-3110-4b49-8dd2-51026a52eabf%40googlegroups.com.


Re: Django back button issue after log-out

2020-05-18 Thread Akshat Zala
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:
>
>>
>> I have written simple registration(login,logout) Django apps.
>>  when i click on logout and then back button from browser 
>> it shows me previous page. it should redirect me to login page. please 
>> help
>>
>>
>  The back button in your browser just shows you cached stuff.  It doesn't 
> contact the server, so there is nothing Django can do.
>

-- 
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/978e6ffa-582e-4af3-ae3a-8ceb39fa4c2d%40googlegroups.com.


Re: required help to save SECRET_KEY and Third party Private API key

2020-05-18 Thread Akshat Zala
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 local machine os.environ.get("SECRET_KEY") it give 
> me the key but when I type the same command on VM instance it shows me null 
>
> I have tried some method like to edit the 
> 1./etc/environment 
> 2.~/.bashrc 
> but none of the files is giving me the secret Key 
>
> waiting for expert answer 
>
> thankyou 
>

-- 
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/106781aa-6795-4828-8cda-fc4c4000f9f6%40googlegroups.com.


Re: required help to save SECRET_KEY and Third party Private API key

2020-05-18 Thread Akshat Zala
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 the environment variable in the machine 
>
> Like when I type on my local machine os.environ.get("SECRET_KEY") it give 
> me the key but when I type the same command on VM instance it shows me null 
>
> I have tried some method like to edit the 
> 1./etc/environment 
> 2.~/.bashrc 
> but none of the files is giving me the secret Key 
>
> waiting for expert answer 
>
> thankyou 
>

-- 
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/0e4dbe3c-7b38-4e61-8e64-f96dc2c44dd3%40googlegroups.com.


Re: CouchDB as Django backend database

2020-05-19 Thread Akshat Zala
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 
> django-couchbase , django-cbtools but didn't find suitable with python3.x 
> and django3.x. python-cloudant looks fine to be used as standard client 
> library to interact with couchdb but my requirement is to use couchdb as 
> full fledged django ORM.
>
> It will be very helpful if somebody can suggest me a better package which 
> can be preferred or any other approach to fulfill these requirements.
>
> Thanks,
> Gopesh
>

-- 
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/f1bedc39-ce0d-43ca-99cc-7241048cb3c8%40googlegroups.com.


Re: NEW TO DJANGO

2020-05-19 Thread Akshat Zala
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.
>
>  
>
>  
>
> Sent from Mail  for 
> Windows 10
>
>  
>
> *From: *Madhav Nandan 
> *Sent: *19 May 2020 20:34
> *To: *django...@googlegroups.com 
> *Subject: *NEW TO DJANGO
>
>  
>
> Dear Django fellas,
>
>  
>
> I'm new to Django here. I started learning and it's been a while and I'm 
> facing a lot of issues. Can somebody help me with *''how can I integrate 
> a payment system like PayPal to a link?''*
>
>  Like I have a link, if someone clicks on that link that will redirect the 
> user to the payment page and there on the payment provider works.
>
>  
>
> I just need to get started and somebody can guide me here hopefully. I 
> don't' need code or so.
>
>  
>
> Help me here.
>
>  
>
> Best regards,
>
>  
>
>  
>
>  
>
>  
>
> -- 
>
> Madhav Nandan
>
> cell: 9170459494
>
> Skype: gaurav.kumar3992
>
>  
>
> -- 
> 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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAGXYL6JYzv%3DvTRNXc1ZqSvJ-6S%3DOSJt%2B%3D_%3DhLqvwyaD0Z_NoDA%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/433e54a0-11c6-490a-b21a-d2ab4de778c2%40googlegroups.com.


Re: NEW TO DJANGO

2020-05-19 Thread Akshat Zala
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 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.
>>
>>  
>>
>>  
>>
>> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for 
>> Windows 10
>>
>>  
>>
>> *From: *Madhav Nandan
>> *Sent: *19 May 2020 20:34
>> *To: *django...@googlegroups.com
>> *Subject: *NEW TO DJANGO
>>
>>  
>>
>> Dear Django fellas,
>>
>>  
>>
>> I'm new to Django here. I started learning and it's been a while and I'm 
>> facing a lot of issues. Can somebody help me with *''how can I integrate 
>> a payment system like PayPal to a link?''*
>>
>>  Like I have a link, if someone clicks on that link that will redirect 
>> the user to the payment page and there on the payment provider works.
>>
>>  
>>
>> I just need to get started and somebody can guide me here hopefully. I 
>> don't' need code or so.
>>
>>  
>>
>> Help me here.
>>
>>  
>>
>> Best regards,
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>
>> -- 
>>
>> Madhav Nandan
>>
>> cell: 9170459494
>>
>> Skype: gaurav.kumar3992
>>
>>  
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAGXYL6JYzv%3DvTRNXc1ZqSvJ-6S%3DOSJt%2B%3D_%3DhLqvwyaD0Z_NoDA%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/CAGXYL6JYzv%3DvTRNXc1ZqSvJ-6S%3DOSJt%2B%3D_%3DhLqvwyaD0Z_NoDA%40mail.gmail.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/116f376b-07de-4527-9a07-cbe22515a7bb%40googlegroups.com.


Re: Integrate wepay payments in django site

2020-05-19 Thread Akshat Zala
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 the process it would be a really big help
>
> regards.
>

-- 
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/09be28b5-8ea3-4c49-a538-308d81dce06d%40googlegroups.com.


Re: I am facing issues in sharing module.

2020-05-19 Thread Akshat Zala
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 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 registers for an account.
>> 2. User will recieve the email confirmation
>> 3. By clicking on the link in email , he gets redirected to login page, 
>> where he can login and he will see account successfully activated.
>>
>> 4. He/She can create /update/delete  the post.
>> 5. He can view his profile,and update the profile.
>>
>> 6. He can search for friends through search bar by either of their first 
>> name, last name, username and email address.
>> 7. Results will be seen in tabular format.
>> 8. By clicking on the hyperlink in add friend column a mail will be sent 
>> to the friend_request with a hyperlink containing a template with 
>> accept/reject buttons.
>> 9. By clicking on either of the buttons, status of friend_request will be 
>> updated accordingly  in the database as well as in the friend list template.
>>
>> 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 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/67084375-fab6-467b-89f7-3b3756b700cb%40googlegroups.com.


Re: Django back button issue after log-out

2020-05-22 Thread Akshat Zala
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
> ),
> 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:
>>
>>>
>>> I have written simple registration(login,logout) Django apps.
>>>  when i click on logout and then back button from browser 
>>> it shows me previous page. it should redirect me to login page. please 
>>> help
>>>
>>>
>>  The back button in your browser just shows you cached stuff.  It doesn't 
>> contact the server, so there is nothing Django can do.
>>
>

-- 
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/1637caf9-273c-495a-83b3-7a5a6f0b5f06%40googlegroups.com.


Re: Parallel or split payment options using paypal

2020-05-29 Thread Akshat Zala
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 commission on the sale and pass the balance to the seller 
> > through my marketplace. 
> > 
>
> Maybe this would be a better place to ask: 
>
> https://www.paypal.com/us/smarthelp/home 
>
> 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/c3b6f605-5a23-4e6a-96ae-02d5a67971cb%40googlegroups.com.


Django Pagination

2020-05-30 Thread Akshat Zala
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 friends and own posts on the dashboard"""
posts = Post.objects.all().order_by('-date_posted')
media: MEDIA_URL
# 'post':Post.objects.filter(Q(author=request.user) | 
Q(author__from_user=request.user) | 
Q(author__to_user=request.user)).order_by('-date_posted'),
paginator = Paginator(posts, 2) 
page_number = request.GET.get('page')
page_obj = paginator.get_page(page_number)
return render(request, 'post/home.html',{'page_obj': page_obj})


and in template post/home.html:

{% if is_paginated %}
{% if page_obj.has_previous %}
First
arrow_left
{% endif %}
{% for num in page_obj.paginator.page_range %}
{% if page_obj.number == num %}
{{ num }}
{% elif 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 
"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/87c3f0db-3088-448c-b3c7-14450e8c2f5d%40googlegroups.com.


Re: Django Pagination

2020-05-30 Thread Akshat Zala



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 friends and own posts on the dashboard"""
> posts = Post.objects.all().order_by('-date_posted')
> media: MEDIA_URL
> # 'post':Post.objects.filter(Q(author=request.user) | 
> Q(author__from_user=request.user) | 
> Q(author__to_user=request.user)).order_by('-date_posted'),
> paginator = Paginator(posts, 2) 
> page_number = request.GET.get('page')
> page_obj = paginator.get_page(page_number)
> return render(request, 'post/home.html',{'page_obj': page_obj})
>
>
> and in template post/home.html:
>
> {% if is_paginated %}
> {% if page_obj.has_previous %}
> First
> arrow_left
> 
> {% endif %}
> {% for num in page_obj.paginator.page_range %}
> {% if page_obj.number == num %}
> {{ num }}
> {% elif 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 %}
> {% endif %}
>
> Thanks
>
> 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 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/97ffaebc-500d-4ae7-a483-bf3f785dee28%40googlegroups.com.


Re: Django Pagination

2020-05-30 Thread Akshat Zala
Hi,

if I change the template to:

{% if not is_paginated %}
{% if page_obj.has_previous %}
First
arrow_left
{% endif %}
{% for num in page_obj.paginator.page_range %}
{% if page_obj.number == num %}
{{ num }}
{% elif 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 %}
{% endif %}

It only shows pagination and posts are not seen in template.

On Saturday, 30 May 2020 21:39:52 UTC+5:30, RyuCoder wrote:
>
> Hi akshat,
> What is the difficulty?
> 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 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 friends and own posts on the dashboard"""
>>> posts = Post.objects.all().order_by('-date_posted')
>>> media: MEDIA_URL
>>> # 'post':Post.objects.filter(Q(author=request.user) | 
>>> Q(author__from_user=request.user) | 
>>> Q(author__to_user=request.user)).order_by('-date_posted'),
>>> paginator = Paginator(posts, 2) 
>>> page_number = request.GET.get('page')
>>> page_obj = paginator.get_page(page_number)
>>> return render(request, 'post/home.html',{'page_obj': page_obj})
>>>
>>>
>>> and in template post/home.html:
>>>
>>> {% if is_paginated %}
>>> {% if page_obj.has_previous %}
>>> First
>>> arrow_left
>>> 
>>> {% endif %}
>>> {% for num in page_obj.paginator.page_range %}
>>> {% if page_obj.number == num %}
>>> {{ num }}
>>> {% elif 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 "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django...@googlegroups.com .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/87c3f0db-3088-448c-b3c7-14450e8c2f5d%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/87c3f0db-3088-448c-b3c7-14450e8c2f5d%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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CABOHK3QumzEA417%3DMV3dTwRszxmULfHp9y-tADSD56N_sTNQ5g%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/CABOHK3QumzEA417%3DMV3dTwRszxmULfHp9y-tADSD56N_sTNQ5g%40mail.gmail.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/b91770e1-32cb-4890-bec6-257317696da6%40googlegroups.com.


Re: Django Pagination

2020-06-01 Thread Akshat Zala
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
>
>
> On Sat, May 30, 2020 at 7:22 PM 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 friends and own posts on the dashboard"""
>> posts = Post.objects.all().order_by('-date_posted')
>> media: MEDIA_URL
>> # 'post':Post.objects.filter(Q(author=request.user) | 
>> Q(author__from_user=request.user) | 
>> Q(author__to_user=request.user)).order_by('-date_posted'),
>> paginator = Paginator(posts, 2) 
>> page_number = request.GET.get('page')
>> page_obj = paginator.get_page(page_number)
>> return render(request, 'post/home.html',{'page_obj': page_obj})
>>
>>
>> and in template post/home.html:
>>
>> {% if is_paginated %}
>> {% if page_obj.has_previous %}
>> First
>> arrow_left
>> 
>> {% endif %}
>> {% for num in page_obj.paginator.page_range %}
>> {% if page_obj.number == num %}
>> {{ num }}
>> {% elif 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 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/87c3f0db-3088-448c-b3c7-14450e8c2f5d%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/87c3f0db-3088-448c-b3c7-14450e8c2f5d%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/c775d687-0773-4d09-86be-35e6f2cd55d2%40googlegroups.com.


Python-django project

2020-08-07 Thread Akshat Zala
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d627a047-ea85-4287-827d-de65671c5dd9o%40googlegroups.com.


How to write view in django to display friend_request which are sent by logged in user?

2020-01-10 Thread Akshat Zala


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 template:

   {% for result in results_from_user %}
{% if result.from_user == result.to_user %}
{{pass}}
{% endif %}







{{result.from_user.first_name}} {{result.from_user.last_name }}




It displays name of the logged in user with profile picture in a tabular 
format.

-- 
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/93780763-f241-44c7-ac71-83d898c842ef%40googlegroups.com.