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 per
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
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 = [
('d
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 I
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 MyModel_postsave
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]*
>>
>> *Error
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 becau
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 file
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 w
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 subscrib
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 in
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 mes
*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,
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
>
>
> https://stackover
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 a
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 Django_Q
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:
https://docs.djangoproject.com/en/3.1/ref/c
17 matches
Mail list logo