Re: Django automatic Logout and and after login it stays on same page

2020-07-28 Thread jhabar singh
by the way how can django logout automatically. I mean user should only be
given the access to do so.

On Wed, Jul 29, 2020 at 3:37 AM isha thakur 
wrote:

> I am new to Django and using Django 3.0.2. Sometimes Django automatically
> logout and when I try to log in on my website then it stays on the login
> page but creates a session(I mean, I can see all the buttons which a user
> will see after login in header and footer). I am not experiencing this
> issue when I am manually logging out and logging in.Please help if
> someone else is also experiencing the same issue. Thanks in advance. Please
> check my code below:
>
> *setting.py:*
>
> LOGIN_REDIRECT_URL = 'index_login'
>
> LOGIN_URL = 'login'
>
>
> *urls.py:*
>
>
> url(r'^login$',auth_views.LoginView.as_view(redirect_authenticated_user=True),name='login'),
> url(r'^index_login', views.index_login, name='index_login')
>
> *view.py:*
>
>
> @login_required
> def index_login(request):
> # this view is created solely for the purpose of being able to log the 
> login information through logToDb
> ut.logToDb(database, messages=['Successful login.'], user=request.user)
> ut.log_info('Successful login by ' + str(request.user) + '.')
> context = {'user': request.user}
> return render(request, 'mainapp/index.html', context)
>
>
> *index.html:*
>
>  {% extends 'mainapp/base.html' %}
>
> {% load static %} {% block content %}
>
>  Databases 
>
> 
>
>type="button" href="plc/index">Inventory 
>
>  
>
>  
>
>  {% endblock %}
>
>
> *I am facing this problem only if Django logout automatically. But if I 
> logout and login then I am not having issue so It is really tricky for me to 
> generate the exact scenario*
>
>
> Regards
>
> Isha
>
>
> --
> 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/2392d64f-0110-4fe2-a5ec-5af27c561a6ao%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/CAJ1QTgmP2Lq4q%2B9i5tGdb7%2B2F9n6uF_Pn7cvkF4wqeByhLZABA%40mail.gmail.com.


How to create a link between Posts List View and Items List View of the same User

2020-07-28 Thread Ahmed Khairy


I am creating a project where there are Posts and Items, 2 different models 
in 2 different apps and each has a user who can be the same.

I have created a page for each user to post all related posts called 
Userpost List view, and I want to add an if statement or a queryset to show 
a button to link the items related to the same user called Designerpost 
List view.

I don't know how to proceed as I can fix the NoReverse Error

Here is the models.py

class Post(models.Model):
designer = models.ForeignKey(User, on_delete=models.CASCADE)
title = models.CharField(max_length=100)

Here is the views.py

class UserPostListView(ListView):
model = Post
template_name = "user_posts.html"
context_object_name = 'posts'
queryset = Post.objects.filter(admin_approved=True)
paginate_by = 6

def get_queryset(self):
user = get_object_or_404(User, username=self.kwargs.get('username'))
return Post.objects.filter(designer=user, 
admin_approved=True).order_by('-date_posted')

Here is the template user_posts.html

{% if item %}
 Go to items{% else %}
  
Go to 
items
 {% endif %}

here is the item models.py

class Item(models.Model):
designer = models.ForeignKey(
User, on_delete=models.CASCADE)
title = models.CharField(max_length=100)

here is the designerlist views.py that I am trying to link to from the user 
post view if it is available

class DesignerPostListView(ListView):
model = Item
template_name = "designer_posts.html"
context_object_name = 'items'
paginate_by = 6

def get_queryset(self):
user = get_object_or_404(User, username=self.kwargs.get('username'))
return Item.objects.filter(designer=user).order_by('-timestamp')

-- 
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/a761e738-6704-49ac-a610-af4bf74f2dc5o%40googlegroups.com.


Update a template

2020-07-28 Thread Samuel Nogueira
Hi folks, I’m facing a problem in my template and it’s respective view.  Basically , in my template I have a list of objects displayed  with no filters whatsoever and I want to add a button that triggers an action wich filters the same list of objects. How can I do that? -Samuel Nogueira Bacelar GitHub: https://github.com/SamuelNoB Linkedin: https://www.linkedin.com/in/samuel-nogueira-87800b1aa/ - 



-- 
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/00675882-2061-44CA-823B-6ADDCEF8E4C8%40hxcore.ol.


RES: Havingproblemwithdisplay. Appreciate any help!

2020-07-28 Thread Samuel Nogueira
In your last e-amil you didn’t put these urls: like /about, /btn and /blog De: Phan NguyenEnviado:terça-feira, 28 de julho de 2020 14:19Para: Django usersAssunto: Re: Havingproblemwithdisplay. Appreciate any help! Yes, exactly! But I also tried the local host server. And this is what I got(picture attached) -- only the /admin works, the rest like /about, /btn and /blog cannot be found..On Tuesday, July 28, 2020 at 9:30:01 PM UTC+7, Samuel Nogueira wrote:Your problem with the html is that you probably are accessing via file path, instead try to access via localhostEx: localhost:8000/your-url  -- 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/b82b8a35-d76b-45ba-9035-79e318febd32o%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/B85D9463-2E50-4D10-9C97-960A6388CE8E%40hxcore.ol.


RES: Havingproblemwithdisplay. Appreciate any help!

2020-07-28 Thread Samuel Nogueira
  Enviado do Email para Windows 10in your last e-amil you didn’t put this urls: like /about, /btn and /blog De: Phan NguyenEnviado:terça-feira, 28 de julho de 2020 14:19Para: Django usersAssunto: Re: Havingproblemwithdisplay. Appreciate any help! Yes, exactly! But I also tried the local host server. And this is what I got(picture attached) -- only the /admin works, the rest like /about, /btn and /blog cannot be found..On Tuesday, July 28, 2020 at 9:30:01 PM UTC+7, Samuel Nogueira wrote:Your problem with the html is that you probably are accessing via file path, instead try to access via localhostEx: localhost:8000/your-url  -- 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/b82b8a35-d76b-45ba-9035-79e318febd32o%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/A1842DDA-36FF-4D44-B219-839B052F56D4%40hxcore.ol.


Re: Django MySQL database backup and restore to new server

2020-07-28 Thread mcaay
Thanks a lot! Solved my 

django.db.utils.IntegrityError: Problem installing fixture ... duplicate 
key value violates unique constraint

problem :)



W dniu wtorek, 5 maja 2020 18:24:12 UTC+2 użytkownik marc bellazzini 
napisał:
>
> SOLVED
>
> # after more extensive googling .
>
> ORIGINAL SERVER
> - cd to your web project directory
> - python manage.py dumpdata > db.json
>
> NEW SERVER
> - sftp db.json file to new server web project directory
> - python manage.py migrate
> - python manage.py shell
> -- >> from django.contrib.contenttypes.models import ContentType
> -- >> ContentType.objects.all().delete()
> -- >> quit()
> - sftp db.json file to new server web project directory
> - python manage.py loaddata db.json
>
>
> On Monday, May 4, 2020 at 4:53:29 PM UTC-5, marc bellazzini wrote:
>>
>> Hello, 
>>
>> I have Django 2.x running on an old Ubuntu server with a MySQL database. 
>> I have installed a new Ubuntu 20.04 server on another machine with Django 
>> 3.x and MySQL. I would like to backup the old Django/mysql database and 
>> restore it on the new server. What is the best practice for doing this? 
>>
>> Thanks
>>
>> Marc
>>  
>>
>

-- 
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/2c3043d8-02d1-4d44-9b2c-e6d86c8a4720o%40googlegroups.com.


Django automatic Logout and and after login it stays on same page

2020-07-28 Thread isha thakur
I am new to Django and using Django 3.0.2. Sometimes Django automatically 
logout and when I try to log in on my website then it stays on the login 
page but creates a session(I mean, I can see all the buttons which a user 
will see after login in header and footer). I am not experiencing this 
issue when I am manually logging out and logging in.Please help if someone 
else is also experiencing the same issue. Thanks in advance. Please check 
my code below:

*setting.py:* 

LOGIN_REDIRECT_URL = 'index_login'

LOGIN_URL = 'login' 


*urls.py:* 


url(r'^login$',auth_views.LoginView.as_view(redirect_authenticated_user=True),name='login'),
 
url(r'^index_login', views.index_login, name='index_login')

*view.py:*


@login_required
def index_login(request):
# this view is created solely for the purpose of being able to log the 
login information through logToDb
ut.logToDb(database, messages=['Successful login.'], user=request.user)
ut.log_info('Successful login by ' + str(request.user) + '.')
context = {'user': request.user}
return render(request, 'mainapp/index.html', context)


*index.html:*

 {% extends 'mainapp/base.html' %} 

{% load static %} {% block content %}

 Databases  



  Inventory 

 

 

 {% endblock %}


*I am facing this problem only if Django logout automatically. But if I logout 
and login then I am not having issue so It is really tricky for me to generate 
the exact scenario*


Regards

Isha


-- 
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/2392d64f-0110-4fe2-a5ec-5af27c561a6ao%40googlegroups.com.


Re: Python-django project

2020-07-28 Thread Lokesh Kumar
Hi there!

Great to hear from you all!

Looking forward to your support.

On Tue, Jul 28, 2020 at 10:20 PM KONE GOMPOU LOUA ALASSANE <
gompou.k...@uvci.edu.ci> wrote:

> +225 47389778
>
> interested brother!
> Regards...
>
> Le mar. 28 juil. 2020 à 16:37, Mithlesh Kumar  a
> écrit :
>
>> I am also interested. Please add my number 8750641542
>>
>>
>> Regards,
>> Mithlesh Kumar
>>
>> On Tue, Jul 28, 2020, 19:07 BISWAJEET MISHRA <
>> biswajeetmishra...@gmail.com> wrote:
>>
>>> Hii..
>>> I'm interested to work with you, U can contact me over whatsapp
>>> +917978330633.
>>> Thanks
>>>
>>> On Tue, Jul 21, 2020, 08:39 learn code  wrote:
>>>
 Hi everyone,

 I am learning python and django, like to work on the projects to
 improve more.If any one interested to join with me to work on the
 projects,plz send me a email.

 --
 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/e7116e9b-9458-4f49-a638-135c4b5874e0o%40googlegroups.com
 .

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CA%2B917QuPM99qrVYjfVxdrkyuH%3Db4umunS0mgutMM5r-0J%2BNnmA%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/CAP-2mbSt%2B0%2BbaYnOZNvhY0-7T9SKkE9dPJo17BvQp0HKxj0S8Q%40mail.gmail.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/CANoHCsvDp-Bg9m2%3DQJd60Rma%3D8RYRQcM4qynpbnQsfdX0rzYyw%40mail.gmail.com
> 
> .
>


-- 

Lokesh Kumar
about.me/LokeshK431


-- 
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/CADiRPBq_cv-cacmpUU5sJbwfwNsBtk-yOc2c3HOCwWJ%2BS_tNoA%40mail.gmail.com.


Re: Channels: can ApplicationCommunicator get events from my channel layer?

2020-07-28 Thread Amandeep R
Hey Chris,

Did you ever figure this out? I'm running into the exact same issue. 

On Sunday, June 9, 2019 at 1:14:52 AM UTC-4, Chris wrote:
>
> I am writing an integration test that loads a page, which somewhere 
> internally calls get_channel_layer().send() to my ChannelNameRouter. I want 
> the event to be consumed and then make various assertions.
>
> I think that I need to instantiate an ApplicationCommunicator with my 
> application instance from routing.py, and then cause the message to be 
> consumed by calling .receive_output(), but when I do that I get a timeout. 
> I can also see the ApplicationCommunicator's input_queue is empty, so it 
> seems like the message never reaches the ApplicationCommunicator. I can see 
> the message sitting in the channel layer (InMemoryChannelLayer.channels), 
> and my application works fine when I test it manually. But is the 
> ApplicationCommunicator supposed to get the message from the channel layer? 
> How can I troubleshoot where the message gets stuck?
>
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/90eac9ec-a429-4ce0-9241-eaf8674a4d68o%40googlegroups.com.


Re: help on creating user profile using drf

2020-07-28 Thread ola neat
sorry this didnt work, when i try this
if created:
instance.profile = Profile.objects.create(user=instance)
instance.save()
i couldnt even register any user

On Mon, Jul 27, 2020 at 2:24 AM Fernando Hernandez 
wrote:

> I think the issue is here instance.profile will be None first time the
> CustomUser is created, you need to assign the created Profile to the
> instance and then save the user
> [image: image.png]
> try this
> if created:
> instance.profile = Profile.objects.create(user=instance)
> instance.save()
>
>
>
>
> On Sun, Jul 26, 2020 at 2:00 PM ola neat  wrote:
>
>> good day, i'm working on a project that allow user create their profile
>> after they have signup, thereby having 2 seperate model, User and Profile
>> but i'm getting a not null constraint error, below is they screenshot of my
>> code and err msg
>>
>> --
>> 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/CAHLKn73K5hEjn%3DzeoQQtaZBOTj4J6f4LH45V1xOKSE6E%3DoOeFQ%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/CACmeZJz1cGJT4Tzqy6QT-ncXJC1TUExEQi7y%2BgDpsfh88bO1WA%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/CAHLKn70upQjNtDC7eYgMZfvE0emZ9vhRYNVtiR%3DqkXB3MbU-jw%40mail.gmail.com.


Re: Havingproblemwithdisplay. Appreciate any help!

2020-07-28 Thread Phan Nguyen
Yes, exactly! But I also tried the local host server. And this is what I 
got(picture attached) -- only the /admin works, the rest like /about, /btn 
and /blog cannot be found..

[image: Screen Shot 2020-07-29 at 00.15.47.png]


On Tuesday, July 28, 2020 at 9:30:01 PM UTC+7, Samuel Nogueira wrote:
>
> Your problem with the html is that you probably are accessing via file 
> path, instead try to access via localhost
>
> Ex: localhost:8000/your-url
>
>  
>
>
>

-- 
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/b82b8a35-d76b-45ba-9035-79e318febd32o%40googlegroups.com.


Re: Python-django project

2020-07-28 Thread KONE GOMPOU LOUA ALASSANE
+225 47389778

interested brother!
Regards...

Le mar. 28 juil. 2020 à 16:37, Mithlesh Kumar  a
écrit :

> I am also interested. Please add my number 8750641542
>
>
> Regards,
> Mithlesh Kumar
>
> On Tue, Jul 28, 2020, 19:07 BISWAJEET MISHRA 
> wrote:
>
>> Hii..
>> I'm interested to work with you, U can contact me over whatsapp
>> +917978330633.
>> Thanks
>>
>> On Tue, Jul 21, 2020, 08:39 learn code  wrote:
>>
>>> Hi everyone,
>>>
>>> I am learning python and django, like to work on the projects to improve
>>> more.If any one interested to join with me to work on the projects,plz send
>>> me a email.
>>>
>>> --
>>> 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/e7116e9b-9458-4f49-a638-135c4b5874e0o%40googlegroups.com
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CA%2B917QuPM99qrVYjfVxdrkyuH%3Db4umunS0mgutMM5r-0J%2BNnmA%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/CAP-2mbSt%2B0%2BbaYnOZNvhY0-7T9SKkE9dPJo17BvQp0HKxj0S8Q%40mail.gmail.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/CANoHCsvDp-Bg9m2%3DQJd60Rma%3D8RYRQcM4qynpbnQsfdX0rzYyw%40mail.gmail.com.


How do I revoke JWT everytime a new token generated using django-graphql-jwt?

2020-07-28 Thread Anzhari Purnomo
I am using django-graphql-jwt (
https://django-graphql-jwt.domake.io/en/latest/index.html) to handle
authentication for my Django Python Graphene application. Currently,
everytime a new JWT generated, the previous JWT is still active as long as
it does not pass its expiry time.

I want to revoke/prevent access to previously generated JWT (even if the
JWT is not expired yet) whenever I generate a new JWT.

What I am thinking is utilizing the origIat inside the JWT payload and
comparing it with something like a last_login attribute from the User
model. I noticed though, that User.last_login is not updated whenever I am
authenticating using JWT.

Still finding how to do this problem properly and wondering if there is any
of you already solving this problem before.

Thanks!


PS: I’ve written a SO post and adding my own solution with code snippet
here:
https://stackoverflow.com/questions/63135623/how-do-i-revoke-jwt-everytime-a-new-token-generated-using-django-graphql-jwt

-- 
Pardon my brevity,
Anzhari Purnomo
Sent from mobile phone

-- 
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/CADSoZDnq-ai_a-8UW7_r_Bvrq662fpK99PZaqf6VJ4YE8zEPKw%40mail.gmail.com.


Re: Python-django project

2020-07-28 Thread Mithlesh Kumar
I am also interested. Please add my number 8750641542


Regards,
Mithlesh Kumar

On Tue, Jul 28, 2020, 19:07 BISWAJEET MISHRA 
wrote:

> Hii..
> I'm interested to work with you, U can contact me over whatsapp
> +917978330633.
> Thanks
>
> On Tue, Jul 21, 2020, 08:39 learn code  wrote:
>
>> Hi everyone,
>>
>> I am learning python and django, like to work on the projects to improve
>> more.If any one interested to join with me to work on the projects,plz send
>> me a email.
>>
>> --
>> 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/e7116e9b-9458-4f49-a638-135c4b5874e0o%40googlegroups.com
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2B917QuPM99qrVYjfVxdrkyuH%3Db4umunS0mgutMM5r-0J%2BNnmA%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/CAP-2mbSt%2B0%2BbaYnOZNvhY0-7T9SKkE9dPJo17BvQp0HKxj0S8Q%40mail.gmail.com.


RES: Havingproblemwithdisplay. Appreciate any help!

2020-07-28 Thread Samuel Nogueira
Your problem with the html is that you probably are accessing via file path, instead try to access via localhostEx: localhost:8000/your-url De: Phan NguyenEnviado:terça-feira, 28 de julho de 2020 08:45Para: Django usersAssunto: Havingproblemwithdisplay. Appreciate any help! I got no idea how to migrate the files html and py and make what I wrote to be displayed on the 127.0 0 1 8000. I had url.py, view.py, btn.py, setting.py, manage.py, wsgi.py, admin.py already. The code are in all the pictures I attached, there are 7 pictures. Could anyone please tell me the direction to go or how to make my code with commands in terminal to create something on django? Or the suitable resources to go for? Appreciate any help. Thank you so much! -- 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/9114a838-c7ed-4490-8023-8daf87859b45o%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/A539505B-0068-43AF-A505-E06652D56821%40hxcore.ol.


Re: Django and PostGIS app to Google cloud.

2020-07-28 Thread jhabar singh
yeah I can help you

On Tue, Jul 28, 2020 at 5:16 PM viraj s solanki 
wrote:

> Hello, everyone,
>
> Anyone can help to push my Geodjango + PostGIS web app to host on Google
> Cloud? I can pay a consulting fee for the time one invest to help me.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9c6e1b11-3d4d-4137-9eed-8d084eb44b7fo%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/CAJ1QTgmn9rq0UMu12YRE7zGSTzfS-tDb5qFcr%2B7SjHOQSniEyQ%40mail.gmail.com.


Re: Python-django project

2020-07-28 Thread BISWAJEET MISHRA
Hii..
I'm interested to work with you, U can contact me over whatsapp
+917978330633.
Thanks

On Tue, Jul 21, 2020, 08:39 learn code  wrote:

> Hi everyone,
>
> I am learning python and django, like to work on the projects to improve
> more.If any one interested to join with me to work on the projects,plz send
> me a email.
>
> --
> 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/e7116e9b-9458-4f49-a638-135c4b5874e0o%40googlegroups.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2B917QuPM99qrVYjfVxdrkyuH%3Db4umunS0mgutMM5r-0J%2BNnmA%40mail.gmail.com.


Re: Django Pagination paginate dictionary of objects

2020-07-28 Thread jhabar singh
bro try to send a intended code

On Tue, Jul 28, 2020 at 5:16 PM Harvindar Singh Garcha <
garchaama...@gmail.com> wrote:

> I am new to Django, and trying to paginate a dictionary objects,
> However I am unable to so and not getting what's wrong with my code,
> Its still printing whole data on a single page. Above I have posted my
> View along with template code.
>
>
> class Search(ListView):
>  paginate_by = 5
>
>  def get(self, request):
>  if 'search' in request.GET:
>  search = request.GET['search']
>  url = '
> https://api.stackexchange.com/2.2/search/advanced?=stackoverflow'
>  params = dict(item.split("=") for item in search.split(","))
>  req = PreparedRequest()
>  req.prepare_url(url, params)
>  stackoverflow_url = req.url
>  response = requests.get(stackoverflow_url)
>  data = response.json()
>  #Data will be like this
>  # data={{'tag':'python','question':'some
> question'},{'tag':'java','question':'some question'}}
>  # n here is 2
>  paginator = Paginator(list(data), 5)
>  page_number = request.GET.get('search')
>  page_obj = paginator.get_page(page_number)
>  return render(request, 'stackoverflow.html', {
>  'data': data,
>  'page_obj': page_obj
>
>  })
>
>
>
>
>
>
>
>
> {%if data %}
> 
>  
> 
>  {% for key,value in data.items %}
>  
>  
> {{ value.title }}
> {{ value.creation_date }} 
>  Asked By  "{{value.owner_link}}">{{value.display_name }} 
>   >Read More   
>  {% endfor %}
>  
> 
> 
> 
> 
> {% if value.has_previous %}
>  first
> previous
> {% endif %}
>  Page {{ page_obj.number }} of {{
> page_obj.paginator.num_pages }}.
>  
>  {% if page_obj.has_next %}
>  next
> last 
>  {% endif %}
>  
>  
> {% else %}
>  No Results found :(
> {% endif %}
> {% endblock content %}
>
>
>
>
>
> --
> 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/f2aeb012-8bad-4234-9a4f-635fe1a8698ao%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/CAJ1QTg%3Dq-dCPgexPQmSZ5w8seqh71K-sByLei%2BXkQHs5soj6WA%40mail.gmail.com.


how to override options of choices in django model form

2020-07-28 Thread Sujata Aghor
Hello All,

How can I override options of choices in django model form from the model
field ?
Below is my code -

*models.py:*

class XXX(models.Model):
StatusType = models.TextChoices('StatusType', const.status_values)
status = models.CharField(max_length=100, default='abc',
choices=StatusType.choices,)


*views.py:*

class XXXUpdateView(LoginRequiredMixin, UserPassesTestMixin, UpdateView):
model = XXX
fields = ['aaa', 'bbb', 'status']

def get_form(self):
form = super().get_form()
form.title = self.kwargs['title']
   # NOW HERE I WANT TO RESET THE VALUE OF STATUS DROPDOWN BASED ON
CERTAIN CONDITION.
return form
-- 

Can anyone suggest something
Thanks in advance !

Thanks & Regards!
Sujata S. Aghor

-- 
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/CAJCP8KB06LxS8m8iNfpe0h30Sa%3Dro2N1AuyGM4sQXreW4f-Pig%40mail.gmail.com.


Django Pagination paginate dictionary of objects

2020-07-28 Thread Harvindar Singh Garcha
I am new to Django, and trying to paginate a dictionary objects,
However I am unable to so and not getting what's wrong with my code,
Its still printing whole data on a single page. Above I have posted my View 
along with template code. 


class Search(ListView):
 paginate_by = 5

 def get(self, request):
 if 'search' in request.GET:
 search = request.GET['search']
 url = 
'https://api.stackexchange.com/2.2/search/advanced?=stackoverflow'
 params = dict(item.split("=") for item in search.split(","))
 req = PreparedRequest()
 req.prepare_url(url, params)
 stackoverflow_url = req.url
 response = requests.get(stackoverflow_url)
 data = response.json()
 #Data will be like this
 # data={{'tag':'python','question':'some 
question'},{'tag':'java','question':'some question'}}
 # n here is 2
 paginator = Paginator(list(data), 5)
 page_number = request.GET.get('search')
 page_obj = paginator.get_page(page_number)
 return render(request, 'stackoverflow.html', {
 'data': data,
 'page_obj': page_obj

 })








{%if data %} 
 
  

 {% for key,value in data.items %}
 
  
{{ value.title }} 
{{ value.creation_date }}  
 Asked By {{value.display_name }}  
 
Read More   
 {% endfor %}
  
 
 
 
 
{% if value.has_previous %} 
 first
previous 
{% endif %} 
 Page {{ page_obj.number }} of {{ 
page_obj.paginator.num_pages }}.
 
 {% if page_obj.has_next %}
 next 
last 
 {% endif %}
 
  
{% else %}
 No Results found :( 
{% endif %} 
{% endblock content %}





-- 
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/f2aeb012-8bad-4234-9a4f-635fe1a8698ao%40googlegroups.com.


Re:

2020-07-28 Thread Pratik Sharma
Try aws with free accounts

On Tue, Jul 28, 2020 at 3:06 PM Walid Kambagha 
wrote:

> Recheck your projects files and configuration to align with your server
> requirements. If you have to load JavaScript files try to load them at the
> end of the file.
>
> On Tue, 28 Jul 2020 at 12:20, RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Try heroku. Maybe it will be faster.
>>
>> On Tue, Jul 28, 2020 at 2:43 PM Anupriya Nishad 
>> wrote:
>>
>>> I hosted my web app on a free hosting site pythonanywhere.com
>>> But it is taking too long to respond.
>>> What could be the reason?
>>>
>>> --
>>> 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/CAGcPrqTyvKaAnsU1sp%3DorX8RsoZKO4W9xvvGsKuJ3y2E0MyHnw%40mail.gmail.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> 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/CAK5m314agd-KHjkRnzBjMtmn0VdLuXqSu0zr%3D%3DjtyXdZAqpbKA%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/CAGbq8n%3DhPgiMbe76eaTioex3k%2B6f2in3sbyz9hmrjD37dDzi7Q%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/CADSKj2eYLk0Z0E3h-eHVTNLWRCshuusk6yYv4EitGMBo8un2mQ%40mail.gmail.com.


Re:

2020-07-28 Thread Amit Singh
can you send me the website link

On Tue, 28 Jul 2020, 14:43 Anupriya Nishad,  wrote:

> I hosted my web app on a free hosting site pythonanywhere.com
> But it is taking too long to respond.
> What could be the reason?
>
> --
> 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/CAGcPrqTyvKaAnsU1sp%3DorX8RsoZKO4W9xvvGsKuJ3y2E0MyHnw%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/CAJrddaDru6cAa-kkaZwbboqHjZcpqPo6KwNTzREGCLC_ZES7fw%40mail.gmail.com.


Django Pagination paginate dictionary of objects

2020-07-28 Thread Harvindar Singh Garcha
I am new to Django, and trying to paginate a dictionary objects, I am 
calling stackoverflow API where I want the result to get paginated. However 
I am unable to so and not getting what's wrong with my code. Above I have 
posted my View along with template code.

>
>
> class Search(ListView):
>  paginate_by = 5
>
>  def get(self, request):
>  if 'search' in request.GET:
>  search = request.GET['search']
>  url = 
> 'https://api.stackexchange.com/2.2/search/advanced?=stackoverflow'
>  params = dict(item.split("=") for item in search.split(","))
>  req = PreparedRequest()
>  req.prepare_url(url, params)
>  stackoverflow_url = req.url
>  response = requests.get(stackoverflow_url)
>  data = response.json()
>  #Data will be like this
>  # data={{'tag':'python','question':'some 
> question'},{'tag':'java','question':'some question'}}
>  # n here is 2
>  paginator = Paginator(list(data), 5)
>  page_number = request.GET.get('search')
>  page_obj = paginator.get_page(page_number)
>  return render(request, 'stackoverflow.html', {
>  'data': data,
>  'page_obj': page_obj
>
>  })
>
>>
>>

My template file


{%if data %}
 
 
 
 
 {% for key,value in data.items %}
 
 
 {{ value.title }}
 {{ value.creation_date }} 
  Asked By
 {{value.display_name }} 
 
 Read More 
 
 
 
 {% endfor %}
 
 
 
 
 
 
 
 {% if value.has_previous %}
  first
 previous
 {% endif %}
 
 Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}.
 
 {% if page_obj.has_next %}
 next
 last 
 {% endif %}
 
 
{% else %}
 No Results found :(
{% endif %}
 
{% endblock content %}







*Can someone tell me what's wrong with my code, I am unable to get a 
paginated result, everything is coming all together on single page.*




-- 
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/683ad3c2-16d6-4eea-9074-5336251165aeo%40googlegroups.com.


Django and PostGIS app to Google cloud.

2020-07-28 Thread viraj s solanki
Hello, everyone, 

Anyone can help to push my Geodjango + PostGIS web app to host on Google 
Cloud? I can pay a consulting fee for the time one invest to help me. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9c6e1b11-3d4d-4137-9eed-8d084eb44b7fo%40googlegroups.com.


Re: How to track changes changes, deletions and creations of records on django site

2020-07-28 Thread Ramez Ashraf
Also Check out this https://github.com/etianen/django-reversion/


On Monday, July 27, 2020 at 5:30:12 PM UTC+2, Hector Berrones wrote:
>
> Hi, Thanks for reading me, does anyone can advice to me about how can have 
> record of changes, deletions and creations on a django app,
> I was trying creating a field in the model to save the Current 
> authenticated user but I have't been able to get the user ID and I 
> would't like to make that field the ForeighKey because I am fraid that if 
> that user is deleted i would lose all the child records.. hope somebody can 
> give me  advice on this, Thanks in advance.
> -- 
> *Hector Berrones.*
> (956) 775 5951
> hec...@getin2web.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/738dc80a-7585-43b7-bff4-f026047e658ao%40googlegroups.com.


Re:

2020-07-28 Thread talk fun
I am also beginner and learning

On Tue, Jul 28, 2020, 2:42 PM Anupriya Nishad 
wrote:

> I hosted my web app on a free hosting site pythonanywhere.com
> But it is taking too long to respond.
> What could be the reason?
>
> --
> 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/CAGcPrqTyvKaAnsU1sp%3DorX8RsoZKO4W9xvvGsKuJ3y2E0MyHnw%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2B4Bgo4cR47QHJRqv6ic-JUFV8FT5WbcXOUHHpZYuCRSG6PsJw%40mail.gmail.com.


Re:

2020-07-28 Thread jhabar singh
Yeah that's a problem which even I had faced. So therefore I don't
use pythonanywhere free tier. I would recommend you to use AWS or Heroku to
host your website. If you want your server to be fast then use AWS. It
works very well for me but heroku is also a very good choice.
But to use these you will have to create a Postgresql ( any RDS Service )
on Aws ( Preferred ).

On Tue, Jul 28, 2020 at 2:42 PM Anupriya Nishad 
wrote:

> I hosted my web app on a free hosting site pythonanywhere.com
> But it is taking too long to respond.
> What could be the reason?
>
> --
> 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/CAGcPrqTyvKaAnsU1sp%3DorX8RsoZKO4W9xvvGsKuJ3y2E0MyHnw%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/CAJ1QTgkz9NveoVE1kDNYd8shkUhBY7SQbFzJR%2BrJ6yLn94hafA%40mail.gmail.com.


Re:

2020-07-28 Thread Walid Kambagha
Recheck your projects files and configuration to align with your server
requirements. If you have to load JavaScript files try to load them at the
end of the file.

On Tue, 28 Jul 2020 at 12:20, RANGA BHARATH JINKA 
wrote:

> Try heroku. Maybe it will be faster.
>
> On Tue, Jul 28, 2020 at 2:43 PM Anupriya Nishad 
> wrote:
>
>> I hosted my web app on a free hosting site pythonanywhere.com
>> But it is taking too long to respond.
>> What could be the reason?
>>
>> --
>> 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/CAGcPrqTyvKaAnsU1sp%3DorX8RsoZKO4W9xvvGsKuJ3y2E0MyHnw%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>
> --
> 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/CAK5m314agd-KHjkRnzBjMtmn0VdLuXqSu0zr%3D%3DjtyXdZAqpbKA%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/CAGbq8n%3DhPgiMbe76eaTioex3k%2B6f2in3sbyz9hmrjD37dDzi7Q%40mail.gmail.com.


Re:

2020-07-28 Thread RANGA BHARATH JINKA
Try heroku. Maybe it will be faster.

On Tue, Jul 28, 2020 at 2:43 PM Anupriya Nishad 
wrote:

> I hosted my web app on a free hosting site pythonanywhere.com
> But it is taking too long to respond.
> What could be the reason?
>
> --
> 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/CAGcPrqTyvKaAnsU1sp%3DorX8RsoZKO4W9xvvGsKuJ3y2E0MyHnw%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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/CAK5m314agd-KHjkRnzBjMtmn0VdLuXqSu0zr%3D%3DjtyXdZAqpbKA%40mail.gmail.com.


[no subject]

2020-07-28 Thread Anupriya Nishad
I hosted my web app on a free hosting site pythonanywhere.com
But it is taking too long to respond.
What could be the reason?

-- 
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/CAGcPrqTyvKaAnsU1sp%3DorX8RsoZKO4W9xvvGsKuJ3y2E0MyHnw%40mail.gmail.com.


Re: Can't change my site name from example.com

2020-07-28 Thread sunday honesty
I have

On Mon, Jul 27, 2020, 11:35 PM Selis  wrote:

> Hiya,
>
> have you set the 'DEFAULT_FROM_MAIL' and 'SERVER_EMAIL' in your
> settings.py?
> Here
> 
>  is
> a reference from the Django Documentation.
>
> Regards,
> Selis
> honest...@gmail.com schrieb am Montag, 27. Juli 2020 um 21:13:18 UTC+2:
>
>> Hi folks, i have been unable to change my site name from example.com or
>> at other times localhost...
>>
>> Anytime i send any mail, it usually display the site name as example.com.
>>
>> For instance, when user registers or want to reset password, the link is
>> usually example.com/somethings.
>>
>> I have changed my site id to my domain name i added to sites through
>> django admin area
>>
>> I am using danjo-allauth.
>>
>> In my other project am using django auth, it displays as localhost/...
>>
>> Can someone help me out?
>>
> --
> 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/cc218a9b-d38e-4f35-bb68-70ceab8c5e14n%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/CALcuGNsY%3DLzmNmQ_Hx1%3Dy1ysm4MBwCt1tE7%3D4U-FG77LncZM9w%40mail.gmail.com.