Re: Django Due control in Django

2020-10-01 Thread Mohammad Ahshan Danish
Easy, while creating user make staff=false. Second user will go using the admin panel and can update isStaff= True. now the first user would be able to access the django app. On Thu, Oct 1, 2020 at 8:46 PM Eugene TUYIZERE wrote: > Dear all, > > I want to make an application that requires 2

Re: Django Due control in Django

2020-10-01 Thread Kunal Solanke
You can add a field in custom user model or profile model if the user is authorized (boolean)or not ,and stop the navigation for user until this authorize field is set to true. You can either create a decorator for that or just check in every view fn. The authorize field can be changed from the

Re: How to redirect to a new view other than what is defined in get_absolute_url

2020-10-01 Thread Patrick Carra
Sorry the pictures I used to show my code did not work #tickets/models.py from django.db import models from django.urls import reverse from menu.models import Menu_Item from home.models import tableTable # Create your models here. class ordersTable(models.Model): order_type = [

Django Due control in Django

2020-10-01 Thread Eugene TUYIZERE
Dear all, I want to make an application that requires 2 person to complete the user creation. I mean when initiator creates a user, for a user to login in application, it requires that an authorizer authorizes the user creation. This can also work in case a user is disable in the system. But

Re: Add user to Group after purchase

2020-10-01 Thread Derek
I am not sure about your details but is my code structure. Note that the signals are in the same file as the models (may be easier to start there first). from django.db.models.signals import post_save class MyModel(Model): id = AutoField(primary_key=True) # etc. def

Re: Static files not work

2020-10-01 Thread waqar khan
Thank you bro. I am fresher , How to expert django framework any tips .. On Thu, Oct 1, 2020 at 5:58 PM MUGOYA DIHFAHSIH wrote: > instead of loading staticfiles you use {{ load static}} > > On Thu, 1 Oct 2020 at 15:23, kkwaq...@gmail.com > wrote: > >> *Error* >> >> *[image: 1.jpg]* >> >>

Re: Recruitment

2020-10-01 Thread abishkar khatiwada
I am interested sir. On Wed, Sep 23, 2020 at 8:25 PM Harish Thiyagharajan < harishthiyagh...@gmail.com> wrote: > I want a interested django user , DM mail for more details , all the > details including payment can be discussed ...looking for for you guys . > > -- > You received this message

django testing: widgets

2020-10-01 Thread albert
Hi due to the impact of corona/covid19 I am working in a django-web-project. (I am a beginner to those Technologies...) At the moment I am writing tests for a django application. Basic tests for creating get- and post-request with the test server (client) are working. But now I am facing a

Looking for mentors for Google Summer of Code

2020-10-01 Thread Asjad khan
I am looking for mentors who can train me to so that I am able to be a part of this esteemed organization in the next year's Google Summer of Code. I have a strong passion for Django and have projects on GitHub too. But I need help so that I am fully aware about this community. Is there someone

python/django support

2020-10-01 Thread Subbu Lakk
guys, I need support for my django application. Here is my requirement python 3.x/django2.x/django channels/web sockets/rest api/daphne /oracle db/java script if anybody can help, I can pay decent money in indian rupees. thank you subba. -- You received this message because you are

Retrieving csrftoken value with CSRF_USE_SESSIONS enabled

2020-10-01 Thread Arthur Rio
Hi, While working on turning on CSRF_USE_SESSIONS for a project, I noticed that the documentation recommends the following to retrieve the value: ``` {% csrf_token %} const csrftoken = document.querySelector('[name=csrfmiddlewaretoken]').value; ``` I am wondering why not doing the following

Re: Static files not work

2020-10-01 Thread MUGOYA DIHFAHSIH
instead of loading staticfiles you use {{ load static}} On Thu, 1 Oct 2020 at 15:23, kkwaq...@gmail.com wrote: > *Error* > > *[image: 1.jpg]* > > *Error line number 2* > > *[image: 2.jpg]* > > > *settingspy* > > *[image: 3.jpg]* > > *html file* > > *[image: 4.jpg]* > > -- > You received this

Static files not work

2020-10-01 Thread kkwaq...@gmail.com
*Error* *[image: 1.jpg]* *Error line number 2* *[image: 2.jpg]* *settingspy* *[image: 3.jpg]* *html file* *[image: 4.jpg]* -- 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,

Re: Mass Emailing

2020-10-01 Thread RANGA BHARATH JINKA
https://github.com/sherzberg/django-emailer On Thu, Oct 1, 2020 at 1:18 PM RANGA BHARATH JINKA wrote: > Hi, > > Try these. This may be useful > > https://pypi.org/project/django-massmailer/ > > https://docs.djangoproject.com/en/3.1/topics/email/#send-mass-mail > > >

Re: Mass Emailing

2020-10-01 Thread RANGA BHARATH JINKA
Hi, Try these. This may be useful https://pypi.org/project/django-massmailer/ https://docs.djangoproject.com/en/3.1/topics/email/#send-mass-mail https://stackoverflow.com/questions/8659131/how-does-one-send-an-email-to-10-000-users-in-django All the best On Thu, Oct 1, 2020

Mass Emailing

2020-10-01 Thread degnon...@gmail.com
Hi, hope every one is doing fine, I have an issue that I have not been able to resolve for several months now. I have two apps where I need to send a bunch of emails on a monthly basis, The first app is host on heroku and the second on DigitalOcean with dokku, for async task I'm using

Re: How to get logged in user location and save it in database

2020-10-01 Thread Andréas Kühne
You can use built in functionality for this. All you need is an up to date IP address database. You can find one here: https://www.maxmind.com/en/geoip2-services-and-databases The geoip handling in Django will then help you find where the IP address is:

Re: How to resize image when uploading to the cloudinary?

2020-10-01 Thread dum dum
Guys, do you know how to resize image pillow in django when uploading to aws s3? I got error when trying to. even though the image has been changed, but the error showed up. I followed this solution but didn't work.

Re: How to get logged in user location and save it in database

2020-10-01 Thread RANGA BHARATH JINKA
I think you can find out city name using IP address. Use JavaScript or there are some python modules also. All the best  On Thu, 1 Oct 2020, 11:34 am Ram, wrote: > Thank you very much, Ranga for the pointer. We actually need to capture > the location of the IP address, like "Where" attribute

Re: How to get logged in user location and save it in database

2020-10-01 Thread Ram
Thank you very much, Ranga for the pointer. We actually need to capture the location of the IP address, like "Where" attribute in this example. So where attribute should also include nearest city name in that country. [image: image.png] Best Regards, ~Ram On Wed, Sep 30, 2020 at 10:36 PM