Re: AttributeError when returning post.title in a comment model

2020-05-31 Thread Julio Cojom
Try '{0}-{1}'.format(var1, var2)

Check in the console in what line it's throwing the attribute error

Rewards

El vie., 29 de mayo de 2020 5:10 p. m., Ahmed Khairy <
ahmed.heshamel...@gmail.com> escribió:

> I was working on a comment section for post and was getting an
> AttributeError when I return return '{}-{}'.format(self.post.title,
> str(self.user.username)) in the comment model
>
> I am trying to link users and posts to the comment I am getting the same
> error
>
> Here is the Models.py
>
> class Comment(models.Model):
> post = models.ForeignKey(Post, on_delete=models.CASCADE)
> user = models.ForeignKey(User, on_delete=models.CASCADE)
> content = models.TextField(max_length=160)
> timestamp = models.DateTimeField(auto_now_add=True)
>
> def __str__(self):
> return '{}-{}'.format(self.post.title, str(self.user.username))
>
> Here is the views.py:
>
> class PostDetailView(DetailView):
> model = Post
> template_name = "post_detail.html"
>
> def get_context_data(self, *args, **kwargs):
> context = super(PostDetailView, self).get_context_data()
> post = get_object_or_404(Post, slug=self.kwargs['slug'])
> comments = Comment.objects.filter(post=post).order_by('-id')
> total_likes = post.total_likes()
> liked = False
> if post.likes.filter(id=self.request.user.id).exists():
> liked = True
>
> if self.request.method == 'POST':
> comment_form = CommentForm(self.request.POST or None)
> if comment_form.is_valid():
> content = self.request.POST.get('content')
> comment = Comment.objects.create(
> post=post, user=request.user, content=content)
> comment.save()
> return HttpResponseRedirect("post_detail.html")
> else:
> comment_form = CommentForm()
>
> context["total_likes"] = total_likes
> context["liked"] = liked
> context["comments"] = comments
> context["comment_form"] = comment_form
> return context
>
>
> class PostCommentCreateView(LoginRequiredMixin, CreateView):
> model = Comment
> form_class = CommentForm
>
>
> --
> 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/9e84bb03-ca66-4517-ab34-8d723a457b9f%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/CAHRQUHki1Fk2s1a9ws4vB7yhfaLFhyboOVwvPSSVG87BSo0%3DtA%40mail.gmail.com.


Re: Can You please help me out!!!

2020-05-31 Thread Julio Cojom
Boolean field on notification model that change status when click or view
the notification , this perhaps need an asynchronous task with jQuery or
celery

Rewards

El vie., 29 de mayo de 2020 9:28 p. m., meera gangani <
meeragangan...@gmail.com> escribió:

> I Want to implement Mark all a read in notification!!
> So What should i do!!
> Can you explain me a little bit of this!
>
> On Sat, May 30, 2020 at 8:46 AM meera gangani 
> wrote:
>
>> Thank you So much for helping me out!!
>> Thanks a lot
>>
>> Meera Gangani
>>
>> On Fri, May 29, 2020 at 5:08 PM Sencer Hamarat 
>> wrote:
>>
>>> Hi Meera,
>>>
>>> You have only one record because of you are using .latest() method in
>>> the query.
>>>
>>> If you want to last 3 or 4 object ordered by descending date, you should
>>> write queryset like this:
>>>
>>> notifications = Notification.objects.all().order_by('-date')[0:x]  # The
>>> 'x' could be 3 or 4 by your choice.
>>>
>>> An pass the notifications to request context in 'render_to_response'
>>> call. {'notifications': notifications}
>>>
>>> The you have to iterate notifications in template via for loop. For
>>> example;
>>>
>>> {% for notification in notifications %}
>>> notification.title
>>> notification.message
>>> notification.date
>>> {% endfor %}
>>>
>>> Saygılarımla,
>>> Sencer HAMARAT
>>>
>>>
>>>
>>> On Fri, May 29, 2020 at 1:59 PM meera gangani 
>>> wrote:
>>>
 i want to fetch last 3 records for notification!!
 But I only fetch last 1 record.

 Can you please help me out!!!
 Can i use filters??

 And my model fields are:
 title=
 message=
 date=

 And i want to fetch last 3-4 records

 --
 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/CANaPPPJVprm5gE0FNFWqPDGdW_ciq15JQXLmjVHinJkHPwRdqQ%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/CACp8TZh3iD4M2%3Ddq4NOrPTpOzAYCFxx_kduS6%2BK%2BEG2kPDFkYA%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/CANaPPPLnRv2matia%2B6Xm9j0cSoNHYWnn8HMt08ojmqxQOrXvCg%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/CAHRQUH%3DZniCZo8YLG%3DG%3DbXQDJddqQ1%2BGGLFnFx4A_jrtLerjeg%40mail.gmail.com.


Re: keras

2020-05-31 Thread HJ
sorry I was using python 3.7.4 32bit and it required 64 , now it worked for 
me 

Le lundi 1 juin 2020 01:13:54 UTC+1, Franck Tchouanga a écrit :
>
> Which version are you trying to install
>
> On Mon, Jun 1, 2020, 00:39 HJ > wrote:
>
>> hello guys hope u r doing well 
>>
>> I want to use keras but I face the error like *there is no module named 
>> tensorflow* when I try to install it I face this error : 
>>
>> **ERROR: Could not find a version that satisfies the requirement 
>> tensorflow (from versions: none)*
>> *ERROR: No matching distribution found for tensorflow**
>>
>> do you have any suggestions ?
>>
>> -- 
>> 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/04e69dab-2560-47ae-8c52-004b61ebd9ed%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/ec930528-b86f-4a9f-9b7e-54a0ea535dc4%40googlegroups.com.


Re: Ajax and Django and jQuery - .attr()

2020-05-31 Thread meli...@melindaminch.com
Hello!

To answer the question about template tags in javascript, i.e. $.post("{% url 
'upvote' %}", {answer_id:answerid}) I

This works when your js is written in the template, as you have it, but if you 
ever want to move that JavaScript into a separate .js file, it will break. 
That’s because right now your file is being run through the Django templating 
engine, but a stand-alone js file wouldn’t be. What I usually do is put a data 
attribute on a convenient element and then get it in the way that Stephen 
suggests below.

So I would have  in my html, and then in my 
javascript, something like this:

$(".upvote").click( function () {
let answerid = $(this).data("answer-id");
console.log(answerid);
$.post($(this).data(“url’), {answer_id:answerid});
});


Good luck, hope this helps!
Melinda

> On May 31, 2020, at 1:26 PM, Stephen J. Butler  
> wrote:
> 
> This isn't a jQuery issue, it's a JavaScript/ECMAScript issue. When you use 
> the "arrow function" style like "() => { ...code... }" then certain variables 
> are not bound into the function contact, including "this". 
> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
>  
> 
> 
> To get "this" inside your event handler you need to use "function () { 
> code... }".
> 
> $(".upvote").click( function () {
> let answerid = $(this).attr("answer-id");
> console.log(answerid);
> $.post("{% url 'upvote' %}", {answer_id:answerid});
> });
> 
> But also, it's bad bad form to define your own attribute names on HTML. Use 
> the "data-answer-id" attribute name to do this, and in your code access it 
> with $(this).data("answer-id").
> 
> On Sun, May 31, 2020 at 2:19 PM Jan Gregorczyk  > wrote:
> I have a problem with Ajax and Django templates. I'm new to Ajax and jquery.
> Console log at the end of the script prints undefined. I don't know why let 
> answerid = $(this).attr("answer-id"); doesn't extract attribute from this 
> line: http://answer.id/>}}">
> I also want to know if using template tags in javascript scripts like here 
> $.post("{% url 'upvote' %}", {answer_id:answerid}) is a good idea.
> 
> 
> {% extends 'base.html' %}
> {% block title %}{{question.title|truncatechars:52}}{% endblock %}
> {% block content %}
> {{question.title}}
> {{question.content}}
> {% for answer in question.answers.all %}
> {{answer.author}}
> {{answer.content}}
> 
> http://answer.id/>}}">
> {{answer.votes.count}}
> http://answer.id/>}}">
> 
> {% endfor %}
> http://question.id/> 
> %}">
> {% csrf_token %}
> {{form.as_p}}
> 
> 
> {% endblock %}
> {% block javascript %}
> {% load static %}
>  src="https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js 
> <https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js>">
> 
> //upvote and downvote script
> var csrftoken = window.Cookies.get('csrftoken');
> function csrfSafeMethod(method) {
> // these HTTP methods do not require CSRF protection
> return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));
> }
> $.ajaxSetup({
> beforeSend: function(xhr, settings) {
> if (!csrfSafeMethod(settings.type) && !this.crossDomain) {
> xhr.setRequestHeader("X-CSRFToken", csrftoken);
> }
> }
> });
> $(".upvote").click( () => {
> let answerid = $(this).attr("answer-id");
> console.log(answerid);
> $.post("{% url 'upvote' %}", {answer_id:answerid});
> });
> 
> {% endblock %}
> 
> -- 
> 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/aa129ea5-dd3d-402f-a297-796b408e8217%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 
> 

Re: keras

2020-05-31 Thread Franck Tchouanga
Which version are you trying to install

On Mon, Jun 1, 2020, 00:39 HJ  wrote:

> hello guys hope u r doing well
>
> I want to use keras but I face the error like *there is no module named
> tensorflow* when I try to install it I face this error :
>
> **ERROR: Could not find a version that satisfies the requirement
> tensorflow (from versions: none)*
> *ERROR: No matching distribution found for tensorflow**
>
> do you have any suggestions ?
>
> --
> 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/04e69dab-2560-47ae-8c52-004b61ebd9ed%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/CANRJ%3D3mwFHof0rUMyb-jCxKQN0CV09vi-1TBa1sOtW6N67n27g%40mail.gmail.com.


keras

2020-05-31 Thread HJ
hello guys hope u r doing well 

I want to use keras but I face the error like *there is no module named 
tensorflow* when I try to install it I face this error : 

**ERROR: Could not find a version that satisfies the requirement tensorflow 
(from versions: none)*
*ERROR: No matching distribution found for tensorflow**

do you have any suggestions ?

-- 
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/04e69dab-2560-47ae-8c52-004b61ebd9ed%40googlegroups.com.


Re: Ajax and Django and jQuery - .attr()

2020-05-31 Thread Stephen J. Butler
This isn't a jQuery issue, it's a JavaScript/ECMAScript issue. When you use
the "arrow function" style like "() => { ...code... }" then certain
variables are not bound into the function contact, including "this".
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions

To get "this" inside your event handler you need to use "function () {
code... }".

$(".upvote").click( function () {
let answerid = $(this).attr("answer-id");
console.log(answerid);
$.post("{% url 'upvote' %}", {answer_id:answerid});
});

But also, it's bad bad form to define your own attribute names on HTML. Use
the "data-answer-id" attribute name to do this, and in your code access it
with $(this).data("answer-id").

On Sun, May 31, 2020 at 2:19 PM Jan Gregorczyk 
wrote:

> I have a problem with Ajax and Django templates. I'm new to Ajax and
> jquery.
> Console log at the end of the script prints undefined. I don't know why
> let answerid = $(this).attr("answer-id"); doesn't extract attribute from
> this line: 
> I also want to know if using template tags in javascript scripts like here
> $.post("{% url 'upvote' %}", {answer_id:answerid}) is a good idea.
>
>
> {% extends 'base.html' %}
> {% block title %}{{question.title|truncatechars:52}}{% endblock %}
> {% block content %}
> {{question.title}}
> {{question.content}}
> {% for answer in question.answers.all %}
> {{answer.author}}
> {{answer.content}}
> 
> 
> {{answer.votes.count}}
> 
> 
> {% endfor %}
> 
> {% csrf_token %}
> {{form.as_p}}
> 
> 
> {% endblock %}
> {% block javascript %}
> {% load static %}
> https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js";>
> 
> //upvote and downvote script
> var csrftoken = window.Cookies.get('csrftoken');
> function csrfSafeMethod(method) {
> // these HTTP methods do not require CSRF protection
> return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));
> }
> $.ajaxSetup({
> beforeSend: function(xhr, settings) {
> if (!csrfSafeMethod(settings.type) && !this.crossDomain) {
> xhr.setRequestHeader("X-CSRFToken", csrftoken);
> }
> }
> });
> $(".upvote").click( () => {
> let answerid = $(this).attr("answer-id");
> console.log(answerid);
> $.post("{% url 'upvote' %}", {answer_id:answerid});
> });
> 
> {% endblock %}
>
> --
> 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/aa129ea5-dd3d-402f-a297-796b408e8217%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/CAD4ANxVDepam-GZ_nOBKoD9fff7aPE9ic5Et-VxJvw85vqEQrQ%40mail.gmail.com.


Ajax and Django and jQuery - .attr()

2020-05-31 Thread Jan Gregorczyk
I have a problem with Ajax and Django templates. I'm new to Ajax and jquery.
Console log at the end of the script prints undefined. I don't know why let 
answerid = $(this).attr("answer-id"); doesn't extract attribute from this 
line:  
I also want to know if using template tags in javascript scripts like here $
.post("{% url 'upvote' %}", {answer_id:answerid}) is a good idea.


{% extends 'base.html' %}
{% block title %}{{question.title|truncatechars:52}}{% endblock %}
{% block content %}
{{question.title}}
{{question.content}}
{% for answer in question.answers.all %}
{{answer.author}}
{{answer.content}}


{{answer.votes.count}}


{% endfor %}

{% csrf_token %}
{{form.as_p}}


{% endblock %}
{% block javascript %}
{% load static %}
https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js";>

//upvote and downvote script
var csrftoken = window.Cookies.get('csrftoken');
function csrfSafeMethod(method) {
// these HTTP methods do not require CSRF protection
return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));
}
$.ajaxSetup({
beforeSend: function(xhr, settings) {
if (!csrfSafeMethod(settings.type) && !this.crossDomain) {
xhr.setRequestHeader("X-CSRFToken", csrftoken);
}
}
});
$(".upvote").click( () => {
let answerid = $(this).attr("answer-id");
console.log(answerid);
$.post("{% url 'upvote' %}", {answer_id:answerid});
});

{% endblock %}

-- 
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/aa129ea5-dd3d-402f-a297-796b408e8217%40googlegroups.com.


Re: How to make Custom User Registration and Login

2020-05-31 Thread sunday honesty
It's better to make a separate app for users. You can call the app users or
account. Create a form.py file in your users app. Then create a CustomUser
class that inherits from either AbstractUser or AbstractBaseUser (check out
the difference between the two). Then you can define the fields you want to
use.
Create UserCreationForm subsequently.

Create a folder called registration inside your templates folder and create
your login.html there

You must update your settings with
AUTH_USER_MODEL = 'users.CustomUser'

LOGIN_URL = 'login' Note, login here is the name you gave your login url.

On Sun, May 31, 2020, 3:37 PM Abhi Mathew  wrote:

> Here: Django Custom User Model
> 
> I don't how familiar you are with Django but this post will help you
> anyhow!
>
> On Wednesday, May 6, 2020 at 3:39:29 PM UTC+5:30, Anubhav Madhav wrote:
>>
>> I am new to Django. I need to make a custom sign up and log in page.
>> Because, during Sign Up, I also want to get User's Address and Contact
>> Number. In Django's 'User' module, it isn't supported. So, how can I make a
>> custom sign up and sign in page. Please 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/42f04b63-6d5f-473e-9526-a6fe906ceef8%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/CALcuGNvPgG5Mcg%2BEj0bLu_%3DRjLQZY8E%2Btu2N8cv7enXosUa5_Q%40mail.gmail.com.


Re: Need Dashboard in Django Admin only

2020-05-31 Thread Derek
PS - Should be "Django REST Framework" ( 
https://github.com/encode/django-rest-framework )
 
PPS - Please don't use pie charts, especially 3D, for your visuals ( 
https://www.businessinsider.com/pie-charts-are-the-worst-2013-6?IR=T )
 
On Sunday, 31 May 2020 17:05:16 UTC+2, Derek wrote:
>
> There are numerous ways to design a front-end dashboard; this a highly 
> contested domain on the web!  
>
> Just some examples, using Django + various other tech are:
>
> * 
> https://www.highcharts.com/blog/tutorials/create-a-dashboard-using-highcharts-and-django/
> * https://dreisbach.us/articles/building-dashboards-with-django-and-d3/
> * https://morioh.com/p/88d6fc714f52
>
> I suggest you look at delivering data from the back end (your Django 
> models) with Django REST Framer (rather than hand-coded JSON); its takes a 
> bit of work to setup but its the most flexible going forward in terms of 
> future needs. e.g.
> * 
> https://medium.com/swlh/build-your-first-rest-api-with-django-rest-framework-e394e39a482c
>
> P.S. Looks like you  are trying to support work for COVID-19 - all the 
> best with that!
>
>
> On Saturday, 30 May 2020 17:08:23 UTC+2, Balaji wrote:
>>
>> Hi
>>
>>
>> If I want to generate such Dashboard in Djano Admin only
>>
>> Can anyone suggest pypi package..
>>
>> Any Sample code is available on git.
>>
>> 2 situation 
>>
>> 1. Only for 1 model
>>
>> 2 For 2 model connected by Foreign Key relationships 
>>
>>
>>
>>
>> -- 
>> Mr Shetty Balaji
>> Asst. Prof.
>> IT Department
>> SGGS I
>> Nanded. My. India
>>
>>

-- 
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/46daa73b-afa8-46d1-b6c9-7420f9edce60%40googlegroups.com.


Re: Need Dashboard in Django Admin only

2020-05-31 Thread Derek
There are numerous ways to design a front-end dashboard; this a highly 
contested domain on the web!  

Just some examples, using Django + various other tech are:

* 
https://www.highcharts.com/blog/tutorials/create-a-dashboard-using-highcharts-and-django/
* https://dreisbach.us/articles/building-dashboards-with-django-and-d3/
* https://morioh.com/p/88d6fc714f52

I suggest you look at delivering data from the back end (your Django 
models) with Django REST Framer (rather than hand-coded JSON); its takes a 
bit of work to setup but its the most flexible going forward in terms of 
future needs. e.g.
* 
https://medium.com/swlh/build-your-first-rest-api-with-django-rest-framework-e394e39a482c

P.S. Looks like you  are trying to support work for COVID-19 - all the best 
with that!


On Saturday, 30 May 2020 17:08:23 UTC+2, Balaji wrote:
>
> Hi
>
>
> If I want to generate such Dashboard in Djano Admin only
>
> Can anyone suggest pypi package..
>
> Any Sample code is available on git.
>
> 2 situation 
>
> 1. Only for 1 model
>
> 2 For 2 model connected by Foreign Key relationships 
>
>
>
>
> -- 
> Mr Shetty Balaji
> Asst. Prof.
> IT Department
> SGGS I
> Nanded. My. India
>
>

-- 
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/8415ab3f-f1da-4380-b29e-499a1fc9a803%40googlegroups.com.


Re: How to make Custom User Registration and Login

2020-05-31 Thread Abhi Mathew
Here: Django Custom User Model 

I don't how familiar you are with Django but this post will help you anyhow!

On Wednesday, May 6, 2020 at 3:39:29 PM UTC+5:30, Anubhav Madhav wrote:
>
> I am new to Django. I need to make a custom sign up and log in page. 
> Because, during Sign Up, I also want to get User's Address and Contact 
> Number. In Django's 'User' module, it isn't supported. So, how can I make a 
> custom sign up and sign in page. Please 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/42f04b63-6d5f-473e-9526-a6fe906ceef8%40googlegroups.com.


Can I involve a node js App in my Django App?

2020-05-31 Thread 'Alexander Rogowski' via Django users


I have a chatbot implemented in a nodejs app (with vue files) and is 
splitted into different settings like human.vue, non-human.vue , 
human-with-random-type-delay.vue etc...

My question now is, how can I show a selection of this settings in my 
django project? The nodejs App loads atm the setting randomly. I would like 
to select them with a radio button and after a click on a button, the 
chatbot is loaded on the page.

Is this makeable with django? I want to work further with django so we can 
connect it with mturk und serve generated urls/sessions.



-- 
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/7284961e-0bee-42fd-bdc4-dfd7e98fdc43%40googlegroups.com.


Re: Apprendre Django en ligne avec un professionnel

2020-05-31 Thread DOUMBIA MAMOUTOU
Merci chef

Le dim. 31 mai 2020 09:32, N'BE SORO  a écrit :

> Bonjour chers tous,
> Ce message s'adresse au débutant en Django qui veulent se former avec
> l'assistance en ligne d'un professionnel.
> Vous voulez apprendre à développer en Django et mettre en production votre
> site ?
> Alors prenez connaissance avec notre programme de formation:
> https://lnkd.in/dcmFzfy
> 
>  Inscrivez vous pour participer à notre séance d'échange :
> https://lnkd.in/dH-QCkJ
> 
>
> --
> 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/4e4efd87-e9f1-4196-945a-9d0200f07836%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/CAHtan7MsF9fspLinDodx_m6PusJsuOhSRuH0FKu8eq4m4%2BbkhQ%40mail.gmail.com.


Re: Please help me out?

2020-05-31 Thread Larry Martell
On Sat, May 30, 2020 at 11:30 PM meera gangani  wrote:
>
>  I want to generate trello-board in my django application
> Can anyone tell me the How to do this?
> Trello-board is like( to-do and future enhancements and doing ) where there 
> are 3-4 columns

Take a look at https://github.com/riktar/jkanban

-- 
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/CACwCsY4HUJmo4rEMMgRereAg9n6Dz75bsPLb3UFUuPAbsKj9CA%40mail.gmail.com.


Re: Apprendre Django en ligne avec un professionnel

2020-05-31 Thread KONE GOMPOU LOUA ALASSANE
Bonjour M. Soro, j’aimerais savoir si vous n’avez pas également  des
formations Xamarin, DotNet Core.

Merci,
Cordialement !

Le dim. 31 mai 2020 à 09:34, N'BE SORO  a écrit :

> Bonjour chers tous,
> Ce message s'adresse au débutant en Django qui veulent se former avec
> l'assistance en ligne d'un professionnel.
> Vous voulez apprendre à développer en Django et mettre en production votre
> site ?
> Alors prenez connaissance avec notre programme de formation:
> https://lnkd.in/dcmFzfy
> 
>  Inscrivez vous pour participer à notre séance d'échange :
> https://lnkd.in/dH-QCkJ
> 
>
> --
> 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/4e4efd87-e9f1-4196-945a-9d0200f07836%40googlegroups.com
> 
> .
>
-- 
*La meilleure façon de prédire l’avenir est de le créer. *

-- 
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/CANoHCstn4FHUCygv6XE7LyQ9z%2BDeQxkiRNEBryP3TTOOcPzW2Q%40mail.gmail.com.


RES: Command open postgresql in from cmd in windows

2020-05-31 Thread Samuel Nogueira
You’re welcome  De: sunday honestyEnviado:domingo, 31 de maio de 2020 06:19Para: django-users@googlegroups.comAssunto: Re: Command open postgresql in from cmd in windows It worked Samuel. Thank you very much On Sun, May 31, 2020, 7:38 AM sunday honesty  wrote:All right. I'll do that now. On Sat, May 30, 2020, 11:34 PM Samuel Nogueira  wrote:you just need to specify the username wich you want to use. So type "psql -U postgres", as postgres being your username.  Em sáb., 30 de mai. de 2020 às 18:47, sunday honesty  escreveu:Here is it again On Sat, May 30, 2020, 10:44 PM Samuel Nogueira  wrote:Sorry but i think your screenshot wasn’t attached to your last email, please end it againDe: sunday honestyEnviado:sábado, 30 de maio de 2020 18:28Para: django-users@googlegroups.comAssunto: Re: Command open postgresql in from cmd in windows Here is the screenshot... Pls download. PS: I was connected to the internet and also tried it without internet connection. On Sat, May 30, 2020, 10:17 PM Samuel Nogueira  wrote:Can you send  me more details about the error? A screenshot should be enoughDe: sunday honestyEnviado:sábado, 30 de maio de 2020 15:18Para: django-users@googlegroups.comAssunto: Re: Command open postgresql in from cmd in windows @Samuel,I did that and psql now opened and prompted me to enter password for my user name(system). I entered the password I created while installing postgresql and got a fatal error even when I was connected to the internet... PS: the username it gave me during installation is postgres but prompted me to enter password for my computer username On Sat, May 30, 2020, 6:39 PM Samuel Nogueira  wrote:Set path For PostgreSQL in Windows: Searching for env will show Edit environment variables for your accountSelect Environment VariablesFrom the System Variables box click new(to add new path) Include the bin directory of your PostgreSQL installation. then add new path there[for example]C:\Program Files\PostgreSQL\12\binAfter that click OK and then try to type psql in your command shell I adapted this from a comment in stackoverflow in the link bellow, if it doesnt work I suggest you to go there.https://stackoverflow.com/questions/11460823/setting-windows-path-for-postgres-tools De: sunday honestyEnviado:sábado, 30 de maio de 2020 14:20Para: Django usersAssunto: Command open postgresql in from cmd in windows I have been in a message before I could successfully install postgresql on my windows; it seems everyone is using Linux or Mac. Pls can someone help me now...I want to open postgres she'll from my command prompt so I can continue what am learning... The Tutorial am following is using Linux and the command to "psql" to open shell is not working on my windows. Anybody please. -- 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/e2396f7b-9e27-442d-a2aa-302a089bead8%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/029CFE67-6146-41CD-A684-E616D519A356%40hxcore.ol.-- 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/CALcuGNuGh1hKneW5cfB6rRwiKspy_U%2BpKNYpXf1-t1wKuWnHmg%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/82EDD67E-5365-4148-BCE2-F2442C82E8BB%40hxcore.ol.-- 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/CALcuGNsYJgUJQ%2BSywNePjqCH3PM9hpcH97cHDgxj%2BD12ufbdDA%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 

Re: Parallel or split payment options using paypal

2020-05-31 Thread John McClain
Thx Christo,

My conclusion is the option has been deprecated and is only available if
you previously accessed it or are a part of their partnership program. The
forms to apply to that program are not accessible likely due to covid.

Anyway, I will check the link you provided again to see if I can find any
answers.

If youre looking to raise some cash in hurry check out my new crowd funding
solution fundgrazing.com. It's not pledged based and generates revenue on
the fly if you engage with it.

regards..

On Sun, 31 May 2020 at 07:24, CHRISTO KRIEGLER 
wrote:

> Hi, John.
>
> Read here https://www.paypal.com/us/smarthelp/article/faq3422 and you
> will also see this message: "Due to coronavirus (COVID-19) safety
> precautions, we currently have limited customer service staffing so wait
> times may be longer."
>
> I believe you will find answers on there too.
>
> Blessings
> Christo Kriegler
>
> On Sat, May 30, 2020 at 4:55 PM John McClain 
> wrote:
>
>> Due to Covid am not getting any response from PayPal. I have sent many
>> messages
>>
>> On Fri 29 May 2020 at 13:46, Akshat Zala  wrote:
>>
>>> 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
>>> 
>>> .
>>>
>> --
>> John McClain
>>
>> Cell: 085-1977-823
>> Skype: jmcclain0129
>> Email: jmcclain0...@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/CAN-hv_rbOOZTPRCkLvKBjEypY4BdTBacvremA8sATdZNAp6C9w%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/CAA4mTE%3DDjwpHWT-PVq_BL0bB%2B1pwVs4aNyzeJ0hHaDH_9NyUdA%40mail.gmail.com
> 
> .
>


-- 
John McClain

Cell: 085-1977-823
Skype: jmcclain0129
Email: jmcclain0...@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/CAN-hv_qVZZrUBwxTzw510NFxJWPW9UZBOm40XzDVejbsMsR1Og%40mail.gmail.com.


Apprendre Django en ligne avec un professionnel

2020-05-31 Thread N'BE SORO
Bonjour chers tous, 
Ce message s'adresse au débutant en Django qui veulent se former avec 
l'assistance en ligne d'un professionnel. 
Vous voulez apprendre à développer en Django et mettre en production votre 
site ? 
Alors prenez connaissance avec notre programme de formation: 
https://lnkd.in/dcmFzfy 

 Inscrivez vous pour participer à notre séance d'échange : 
https://lnkd.in/dH-QCkJ 


-- 
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/4e4efd87-e9f1-4196-945a-9d0200f07836%40googlegroups.com.


Re: Command open postgresql in from cmd in windows

2020-05-31 Thread sunday honesty
It worked Samuel. Thank you very much

On Sun, May 31, 2020, 7:38 AM sunday honesty 
wrote:

> All right. I'll do that now.
>
> On Sat, May 30, 2020, 11:34 PM Samuel Nogueira 
> wrote:
>
>> you just need to specify the username wich you want to use. So type "psql
>> -U postgres", as postgres being your username.
>>
>>
>> Em sáb., 30 de mai. de 2020 às 18:47, sunday honesty <
>> honesty202...@gmail.com> escreveu:
>>
>>> Here is it again
>>>
>>> On Sat, May 30, 2020, 10:44 PM Samuel Nogueira 
>>> wrote:
>>>
 Sorry but i think your screenshot wasn’t attached to your last email,
 please end it again

 *De: *sunday honesty 
 *Enviado:*sábado, 30 de maio de 2020 18:28
 *Para: *django-users@googlegroups.com
 *Assunto: *Re: Command open postgresql in from cmd in windows



 Here is the screenshot... Pls download.



 PS: I was connected to the internet and also tried it without internet
 connection.



 On Sat, May 30, 2020, 10:17 PM Samuel Nogueira 
 wrote:

 Can you send  me more details about the error? A screenshot should be
 enough

 *De: *sunday honesty 
 *Enviado:*sábado, 30 de maio de 2020 15:18
 *Para: *django-users@googlegroups.com
 *Assunto: *Re: Command open postgresql in from cmd in windows



 @Samuel,

 I did that and psql now opened and prompted me to enter password for my
 user name(system). I entered the password I created while installing
 postgresql and got a fatal error even when I was connected to the
 internet...



 PS: the username it gave me during installation is postgres but
 prompted me to enter password for my computer username



 On Sat, May 30, 2020, 6:39 PM Samuel Nogueira 
 wrote:

 Set path For PostgreSQL in Windows:



1. Searching for env will show Edit environment variables for your
account
2. Select Environment Variables


1. From the System Variables box click new(to add new path)



 Include the bin directory of your PostgreSQL installation. then add
 new path there

 [for example]

 C:\Program Files\PostgreSQL\12\bin

 After that click OK and then try to type psql in your command shell



 I adapted this from a comment in stackoverflow in the link bellow, if
 it doesnt work I suggest you to go there.


 https://stackoverflow.com/questions/11460823/setting-windows-path-for-postgres-tools



 *De: *sunday honesty 
 *Enviado:*sábado, 30 de maio de 2020 14:20
 *Para: *Django users 
 *Assunto: *Command open postgresql in from cmd in windows



 I have been in a message before I could successfully install postgresql
 on my windows; it seems everyone is using Linux or Mac.



 Pls can someone help me now...

 I want to open postgres she'll from my command prompt so I can continue
 what am learning... The Tutorial am following is using Linux and the
 command to "psql" to open shell is not working on my windows.



 Anybody please.



 --

 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/e2396f7b-9e27-442d-a2aa-302a089bead8%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/029CFE67-6146-41CD-A684-E616D519A356%40hxcore.ol
 
 .

 --
 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/CALcuGNuGh1hKneW5cfB6rRwiKspy_U%2BpKNYpXf1-t1wKuWnHmg%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 

Re: Please help me out?

2020-05-31 Thread meera gangani
Like I have to implement trello board function in django
In order that I have to implement archieve functionality and separately
provided boxes for that
1.todo
2.doing
3 future enhancements etc.

On Sunday, May 31, 2020, Sharva kant  wrote:

> Hi Meera,
>
> I believe you would have to use Javascript framework on front end to do
> that. You can use Vuejs, Angular js , React or Ember to do that
>
> Cheers
> Sharva
>
> On Sat, 30 May 2020 at 22:31, meera gangani 
> wrote:
>
>>  I want to generate trello-board in my django application
>> Can anyone tell me the How to do this?
>> Trello-board is like( to-do and future enhancements and doing ) where
>> there are 3-4 columns
>>
>>
>> In-advance thank you
>> -Meera Gangani
>>
>> --
>> 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/CANaPPP%2BZO-552o6%3DJDoc-mCBZ1Q%
>> 3DCrv0JE%2B-e%3DzFKRAzfHFMgQ%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/CAKRQzujLOV%2BtUKZkh4%2Bi1VJWcE%3DeHLWoaKcbZXbjaMq_
> xoBOEw%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/CANaPPPJOT5SWdWz8QbS2p6_fRTuWttLv6bm6PKfFaArhCPvkAQ%40mail.gmail.com.


Re: Command open postgresql in from cmd in windows

2020-05-31 Thread sunday honesty
All right. I'll do that now.

On Sat, May 30, 2020, 11:34 PM Samuel Nogueira  wrote:

> you just need to specify the username wich you want to use. So type "psql
> -U postgres", as postgres being your username.
>
>
> Em sáb., 30 de mai. de 2020 às 18:47, sunday honesty <
> honesty202...@gmail.com> escreveu:
>
>> Here is it again
>>
>> On Sat, May 30, 2020, 10:44 PM Samuel Nogueira 
>> wrote:
>>
>>> Sorry but i think your screenshot wasn’t attached to your last email,
>>> please end it again
>>>
>>> *De: *sunday honesty 
>>> *Enviado:*sábado, 30 de maio de 2020 18:28
>>> *Para: *django-users@googlegroups.com
>>> *Assunto: *Re: Command open postgresql in from cmd in windows
>>>
>>>
>>>
>>> Here is the screenshot... Pls download.
>>>
>>>
>>>
>>> PS: I was connected to the internet and also tried it without internet
>>> connection.
>>>
>>>
>>>
>>> On Sat, May 30, 2020, 10:17 PM Samuel Nogueira 
>>> wrote:
>>>
>>> Can you send  me more details about the error? A screenshot should be
>>> enough
>>>
>>> *De: *sunday honesty 
>>> *Enviado:*sábado, 30 de maio de 2020 15:18
>>> *Para: *django-users@googlegroups.com
>>> *Assunto: *Re: Command open postgresql in from cmd in windows
>>>
>>>
>>>
>>> @Samuel,
>>>
>>> I did that and psql now opened and prompted me to enter password for my
>>> user name(system). I entered the password I created while installing
>>> postgresql and got a fatal error even when I was connected to the
>>> internet...
>>>
>>>
>>>
>>> PS: the username it gave me during installation is postgres but prompted
>>> me to enter password for my computer username
>>>
>>>
>>>
>>> On Sat, May 30, 2020, 6:39 PM Samuel Nogueira 
>>> wrote:
>>>
>>> Set path For PostgreSQL in Windows:
>>>
>>>
>>>
>>>1. Searching for env will show Edit environment variables for your
>>>account
>>>2. Select Environment Variables
>>>
>>>
>>>1. From the System Variables box click new(to add new path)
>>>
>>>
>>>
>>> Include the bin directory of your PostgreSQL installation. then add new
>>> path there
>>>
>>> [for example]
>>>
>>> C:\Program Files\PostgreSQL\12\bin
>>>
>>> After that click OK and then try to type psql in your command shell
>>>
>>>
>>>
>>> I adapted this from a comment in stackoverflow in the link bellow, if it
>>> doesnt work I suggest you to go there.
>>>
>>>
>>> https://stackoverflow.com/questions/11460823/setting-windows-path-for-postgres-tools
>>>
>>>
>>>
>>> *De: *sunday honesty 
>>> *Enviado:*sábado, 30 de maio de 2020 14:20
>>> *Para: *Django users 
>>> *Assunto: *Command open postgresql in from cmd in windows
>>>
>>>
>>>
>>> I have been in a message before I could successfully install postgresql
>>> on my windows; it seems everyone is using Linux or Mac.
>>>
>>>
>>>
>>> Pls can someone help me now...
>>>
>>> I want to open postgres she'll from my command prompt so I can continue
>>> what am learning... The Tutorial am following is using Linux and the
>>> command to "psql" to open shell is not working on my windows.
>>>
>>>
>>>
>>> Anybody please.
>>>
>>>
>>>
>>> --
>>>
>>> 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/e2396f7b-9e27-442d-a2aa-302a089bead8%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/029CFE67-6146-41CD-A684-E616D519A356%40hxcore.ol
>>> 
>>> .
>>>
>>> --
>>> 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/CALcuGNuGh1hKneW5cfB6rRwiKspy_U%2BpKNYpXf1-t1wKuWnHmg%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/82EDD67E-5365-4148-BCE2-F2442C82E8BB%40hxcore.ol
>>> 

Re: Parallel or split payment options using paypal

2020-05-31 Thread CHRISTO KRIEGLER
Hi, John.

Read here https://www.paypal.com/us/smarthelp/article/faq3422 and you will
also see this message: "Due to coronavirus (COVID-19) safety precautions,
we currently have limited customer service staffing so wait times may be
longer."

I believe you will find answers on there too.

Blessings
Christo Kriegler

On Sat, May 30, 2020 at 4:55 PM John McClain  wrote:

> Due to Covid am not getting any response from PayPal. I have sent many
> messages
>
> On Fri 29 May 2020 at 13:46, Akshat Zala  wrote:
>
>> 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
>> 
>> .
>>
> --
> John McClain
>
> Cell: 085-1977-823
> Skype: jmcclain0129
> Email: jmcclain0...@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/CAN-hv_rbOOZTPRCkLvKBjEypY4BdTBacvremA8sATdZNAp6C9w%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/CAA4mTE%3DDjwpHWT-PVq_BL0bB%2B1pwVs4aNyzeJ0hHaDH_9NyUdA%40mail.gmail.com.


Re: Django Pagination

2020-05-31 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
>>>  
>>> 
>>> .
>>>
>> -- 
>> 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
>>  
>> 
>> .
>>
>

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