Tuesday, March 31, 2020

Re: Django Testing

Good day,

I hope this (https://docs.djangoproject.com/en/3.0/intro/tutorial05/#writing-our-first-test) can help, its part of the Django tutorials.

On Tue, Mar 31, 2020 at 4:35 PM ekong, emmanuel <ekong.emmanuel@lmu.edu.ng> wrote:
I'm having the same difficulty... 

On Tue, 31 Mar 2020 at 3:32 PM, Abrar Ahmad <gangsterabrar1000@gmail.com> wrote:
Hello Sir 
I have trouble in learnig Testing tutorial of Djanog Documentation.
Can any one tell me what is the main concept of learnign test and how can we learn it in easiest way.
I am waiting for reply

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6e807ef4-09b6-459d-9d7f-ddb42931c4d9%40googlegroups.com.

Disclaimer
This e-mail is intended solely for the named recipient. The information contained in this message is strictly confidential.
  • If you are not the named recipient, you are hereby notified that any use, dissemination or reproduction of this document and or its content is prohibited and may be deemed unlawful.
  • If you are not the named recipient of this e-mail, please notify the sender by a return e-mail and delete all copies of it from your computer and mail.
Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be those of Landmark University, to whom no liability shall be attached whatsoever.

Thank you

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAP9wcyqaBJLLdc86wkSOtiNoCUDuQVHOh7mpPtCnCmRAbtRxw%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANDnEWfZuDeX7_0tvSdVY3-gWxdhinwyMGYQE3_ftri7e3OmjA%40mail.gmail.com.

CSS doesnt work deployed on Pythonanywhere

Really simple stuff. webpage navbar looks propper locally. But when deployed the navbar loses font and goes vertical. Checked Django and bootstrap installed versions on both,
Any thoughts? This is my first project on Django.

Thanks for your help.
Alexis.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cb265266-fbd9-442c-84f6-c1826abcdc62%40googlegroups.com.

Django authentication micro service Rest API utilization

Hello Everyone,

I want to implement and integrate different, separately Django service. 
Suppose I have these two different projects.

1. Authentication rest API ( user can register, login, email verification, create JWT token on login, refresh token, etc)
2. Frontend Project: This is the project with one application:
  • userapp: This app is responsible for providing HTML templates e.g registers a new user, login user, etc using authentication rest API. Currently, i have a local database to store and verify the token. Suppose, when a user logged in. The authentication API will provide me a jwt token and this token will be stored in my local database. For the first time when a user logged in, I have the user id, so I can use this id to check the user token (expiry date). But the problem is that how i keep the user identity until the user signout? What strategy and what functionality of Django should be used to keep track of the current user information because of on this identity I can check the token lifetime? 
I need help and suggestion!

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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c37cbb43-5871-436e-86c7-d4d2ad887f4b%40googlegroups.com.

Re: NoReverseMatch error message - Please help

Sometimes the error can be from your url.py or even views.py and also make sure no typo. Check each on e of the above carefully. Hopefully you might see the bug.

Cheers

On Tue 31. Mar 2020 at 18.06, Jeff Waters <watersjg@gmail.com> wrote:
Thanks Ryan.

I've just tried that, but I still get an error message.

By the way, is it definitely .id and not _id? I've seen both, and Django docs says: 'Behind the scenes, Django appends "_id" to the field name to create its database column name, which makes me wonder if it might be _id.

Incidentally, I've also tried amending the relevant URL path to path('add_comment/<int:p.image_id>', views.add_comment, name='add_comment') - with underscore and with a dot before the id - but that doesn't work.

Jeff



--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4473f031-abfa-428a-8804-debaf5a41c93%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAipwd_Bjw%2BajNSVfyKcO5f27i2oxEmHoppnun2sA399eqcVxg%40mail.gmail.com.

Re: NoReverseMatch error message - Please help

Thanks Ryan.

I've just tried that, but I still get an error message.

By the way, is it definitely .id and not _id? I've seen both, and Django docs says: 'Behind the scenes, Django appends "_id" to the field name to create its database column name, which makes me wonder if it might be _id.

Incidentally, I've also tried amending the relevant URL path to path('add_comment/<int:p.image_id>', views.add_comment, name='add_comment') - with underscore and with a dot before the id - but that doesn't work.

Jeff



--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4473f031-abfa-428a-8804-debaf5a41c93%40googlegroups.com.

Associating comments with images

I am creating a website where users can comment on photos in a gallery. The challenge I currently have is that Django is not able to determine which of the photos the comment 'submit' button relates to.

This is my HTML code for the photo gallery:

<h2>comments</h2>
{% if not comments %}
No comments
{% endif %}
{% for x in comment %}
<div class="comments" style="padding: 10px;">
<p class="font-weight-bold">
<h4>Comment by</h4> {{ x.user }}
<span class=" text-muted font-weight-normal">
{{ x.created_on }}
</span>
</p>
{{ x.body | linebreaks }}
</div>
{% endfor %}
</div>
<div class="card-body">
{% if new_comment %}
<h2>Your comment has been posted.</h2>
{% else %}
<h3>Leave a comment</h3>
<form action="{% url 'nowandthen:add_comment'%}" method="POST">
{{ comment_form.as_p }}
{% csrf_token %}
<button type="submit" class="btn btn-primary btn-lg">Submit</button>
{% endif %}

How do you suggest I overcome this problem, please?

Thanks

Jeff

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cabe2b94-bf00-4394-b699-8a15d48247d2%40googlegroups.com.

Re: Looking for Django developers to work on a new and an existing project with our team

Yes sir I am also interested,
I am quite new to it,
But curious to learn a lot from you guys

On Tue, Mar 31, 2020, 8:16 PM Saswat Ray <ray.saswat2@gmail.com> wrote:

On Tue, Mar 31, 2020 at 7:10 PM Juan J. Moreno Piña <prof.juanj.moreno@gmail.com> wrote:
available now, I'm located remote
Juan
Teaching to learn
Trading to survive
*M.Sc. Juan J. Moreno*
En Venezuela (Maracaibo)
Skype:studiom2j
Tel (Italy): +39 02320628565






El lun., 30 de mar. de 2020 a la(s) 07:56, Satish Pal (satishpal456@gmail.com) escribió:
Hi 

I have total of 2 years of experience and I am interested to join your team.
please check my Linkedin profile https://www.linkedin.com/in/satish-kumar-2230b3158/

Thanks in Advance.

On Mon, Mar 30, 2020 at 8:51 AM Phako Perez <13.phakman@gmail.com> wrote:
Hi,

I'm also interested to join your team, have 3+ years working with python 
Currently I'm teaching python to a group in order them to improve theirs career 

Thanks in advance 

Sent from my iPhone

On 29 Mar 2020, at 20:48, chinna <chittiboina.premkumar@gmail.com> wrote:


Hi,

I am Premkumar having 3 years of experience in web and rest api development using python and Django. I would like to join your team

On Sun, Mar 29, 2020 at 11:26 PM Lax Nayak <lnayak@qlytics.com> wrote:
I am looking for a django developer who has expertise in building enterprise grade solutions. 


--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f93f06b0-883c-4477-9d73-cc429a43380d%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG%3DmdoCaGy%3DTWh0CY04_TBo8uG__4UWnd8sfWYLOZ8fapfZ%3DCA%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5C30197E-FCE7-4BE8-B169-4E9E74F4EBF3%40gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALzNJXmFb3cSFpEmYs2yB502x%2BB9DtNkDT_L2hqxvmvTPx08jA%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMf5KvxLjfvMEPJZ6j3PTruMpho34FOW3HaLOECfbkGQFV%2B6zA%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEhPkLFtrnrw39q6jP5R536BzbivfbE8KTOHjjyaJzbdSUG1WA%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAmOWVwzWwf6bHedvCBw7bnSBy77rM%2BdMT7D72jZszLDTnBLGw%40mail.gmail.com.