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
Where can i get django user models,can i edit it? Like can i add relationship with another model
Yeap. U need to inherit from AbstractUser or AbstractBaseUser and add your changes.
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 ?
Anonymous
Hi, im trying to implement an sso system i have some problems… Can anyone with experience of making one help me ?
Ok i’ll correct myself. I have an idp up and running that authenticate users. My problem is that when i login from my sp i get the next url correct and right but it seems like after i login it just refreshes it self. Checking the log i see the 302 req to proccess login and i was very fraustrated to see this kind of behaviour from my idp Im using flask_saml2 extension and pysaml2 Any hint would be appreciated ❤️
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
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/
Jerome
What is the best option? Nginx or Apache?
Apache works very well, i was surprised actually. You can also use both with nginx as a load balancer
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
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
Doragonsureiyā
Hi friends im a newbie could someone help with multi user type authentication in django
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Nitin
https://linkode.org/#PYU1m5oIONIzkI84z72wc2
Not a registered namespace any suggestions to fix this erroe
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,
Frost Giant
Hi friends im a newbie could someone help with multi user type authentication in django
So If I understand you correctly, you want more classification options for the user table apart from is_staff and is_superuser
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
Rahkmanuly
?
Maxim
?
google byte order mark
Maxim
?
i was wrong
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
AFK
What's the difference between pipenv and virtual environment
Virtualenv is mainly for python packages and libraries Pip env will combine pip files and your pip profile in one file or cli only for your local pc
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 ?
JL
How to implement ldap authentication in django ?
Ldap3 i think si the best package for that with a very good documentation
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
Sebastian
you can pass data like expiresIn and so on
can you give me some example please. I want to change the *username_field* field from the view
Anonymous
I don't remember exactly how, I will check and tell tomorrow
Sebastian
thanks
Zakx
How to have the link in the verify-email endpoint activate account when user clicks on it???
Anonymous
How to have the link in the verify-email endpoint activate account when user clicks on it???
I have never implemented, but I think this might work, on clicking the link, it will hit an api, with a 5 digit code as parameter, which will also be in db,so if it matches, then you can mark as verified
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
Mirco
Can someone advise me on a Django host
AWS, Heroku, Digital Ocean, Google Cloud, PythonAnywhere, your VPS etc etc
Rahkmanuly
How to make search by first word in char field?
Hi bro 😎 Look it on my vk wall