Anonymous
You can use django itself or drf and react angular vuj js
Hunde
Where can i get django user models,can i edit it? Like can i add relationship with another model
RXRX
class anyclass(models.Model):
relation = models.ForeignKey(User)
RXRX
import it first : from django.contrib.auth.models import User
Madhav
How can I prepopulate email field in next page
Ali
Hunde
Armin
Material to read!
The documentation covers this completely. Search for "extending the existing User model" and look under substituting a custom user model.
Anonymous
Hi, im trying to implement an sso system i have some problems…
Can anyone with experience of making one help me ?
Ali
Material to read!
docs for sure. also read about William Vincent's best practice about Django custom user model too.
Doragonsureiyā
Material to read!
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Mohd Zaid
That project has postgresql as a database
Mohd Zaid
cannot load library cario was not found
cannot load library libcario-2 was not found
Mohd Zaid
Mohd Zaid
can some help me pls
Dzmitry A
can some help me pls
Do you install it in your virtual environment? https://pycairo.readthedocs.io/en/latest/
barto
hi, i have an interesting problem. is there a way to use celery with django to process about 50 thousand requests per minute?
Ali
Ali
depends on what kind of broker you want to use and your tasks.
Ali
Celery is just a framework allows you to work with async facilities easier. also able to connect to a broker and interact with it.
Ali
with that being said, your hardware is also another thing.
Anonymous
Do i need superuser for every django ptoject?
Arslan
up to you
Dasa
Hey I am using https://django-celery-beat.readthedocs.io/ to run Cron Tasks. is there a way to set expiry date time for a task? I couldn't find that in the doc
Nitin
I am facing this issue_Not a register namespace ...i have specified the app_name='shop' in my urls.py file
Nitin
How to resolve this
Nitin
https://linkode.org/#PYU1m5oIONIzkI84z72wc2
Nitin
I have pasted views and urls here please let me know if any other file is needed
Mo
hi if we want to retrieve by objectid (database is mongodb) how we can define the correct view?
( url be like 'getResult/<str:pk>/')
Sloth
Does django signal post_save track changes in table only when change is made by an app or change made by anyone on the table(including sql command line)?
Cyberd
Hi friends im a newbie could someone help with multi user type authentication in django
Sergey
Hi! I have some problem with change password in admin. I changed, but admin page says that it's incorrect. I copied password, go to incognito and paste and get error. What can I do?
Fan / Ac
is there a place to test django models and queries without setting up all
like https://mongoplayground.net/
Frost Giant
Any suggestions, I want to make a dashboard that sellers can see visualizations of their sales for different time periods, (sales/orders to 30/90 days) and Google searches have not been too productive,
Doragonsureiyā
Rahkmanuly
latin-1' codec can't encode characters in position 0-2: ordinal not in range(256)
Rahkmanuly
Who can help?
I am using Django with PostgreSQL
Rahkmanuly
Error happens when I am creating an object in DB
Maxim
Rahkmanuly
?
Maxim
Maxim
Frost Giant
Material to read!
https://simpleisbetterthancomplex.com/tutorial/2018/01/18/how-to-implement-multiple-user-types-with-django.html
Mohd Zaid
is there any way to check if a django project has frontend
Eric
What's the difference between pipenv and virtual environment
Eric
Shachita
Hey!! Can someone help me with this please?
Can we show form in django admin without creating a model in the admin panel?
Love
How to implement ldap authentication in django ?
Love
Arslan
How to make search by first word in char field?
Sebastian
Hi. Is there any way how can i pass some data to serializer. For example, change the field in it
class TokenSerializer(TokenObtainPairSerializer):
username_field = "username_or_email"
class TokenObtainView(TokenObtainPairView):
permission_classes = (AllowAny,)
serializer_class = TokenSerializer -> i want to pass some data here
Anonymous
Anonymous
I don't remember exactly how, I will check and tell tomorrow
Sebastian
thanks
Love
Zakx
How to have the link in the verify-email endpoint activate account when user clicks on it???
Zakx
Thanks, have you any docs
Anonymous
No, I am not sure if this is even standard practice
Zakx
Ok
Zakx
Any idea about how to login authentication with Facebook and Gmail in drf?
Anonymous
Send the credentials to facebook api, they will send token details in response
Zakx
Can we use any library?
Anonymous
Allauth
Anonymous
I think
Zakx
Ok 👍
VBarcaz
Hello group, I have these two tables:
class Deudas(models.Model):
cc = models.CharField()
importe = models.DecimalField()
class tmpDeudas(models.Model):
cc = models.CharField()
importe = models.DecimalField()
and I need to make with the django models a query that returns all the objects that are in the Deudas table and that are *NOT* in the tmpDeudas table.
Notice that they have the same structure but they have no connection between them, no foreign keys to anywhere and they are in the same database.
This query solves the problem:
SELECT
deudas.id, deudas.cc,
FROM deudas
LEFT JOIN tmpdeudas ON deudas.cc = tmpdeudas.cc
where
tmpdeudas.cc is null
Is there any way to do the same query with Django models and make it more "nice and efficient" so to speak?
Thank you.
.
Can someone advise me on a Django host
John
Mirco
Rahkmanuly