Anonymous
Login logout anyone has easy method please tell
Yes. Just use the auth library. Its too easy
R.U.S.H.A.B.H
Yes. Just use the auth library. Its too easy
Any straight forward example please🙏
R.U.S.H.A.B.H
Use the Django CBV LoginView and LogoutView.... Or you want FBV
Cbv is okay but I didn't know how to use sessions also
Mirco
Cbv is okay but I didn't know how to use sessions also
session object is inside request one so request.session
Anonymous
Cbv is okay but I didn't know how to use sessions also
Watch a YT video on User Authetication by Dennis Ivy.
Mirco
or if you are inside a method of CBV, self.request.session
R.U.S.H.A.B.H
or if you are inside a method of CBV, self.request.session
Yeah I saw that syntax but in practical logic is not clear that's why thanks 😊
Nabeel
How can used djnago signals in django-tenants
Aatman
https://del.dog/uzalinenam I got same error every time when i access the database through the command line ... Anyone
Felipe
Cool, thx! I'll do some tests
Aatman
Did you add your app to settings.py
Yea Bro I am working more than 2 month On project but last few days Something is wrong and got the error
Nikhil
Cool, thx! I'll do some tests
yes that would be a good idea
Anaconda
Can anyone tell how to use two database and use in models.py
Nikhil
Can anyone tell how to use two database and use in models.py
Can u be more specific about your use case
Anaconda
I have to use one database for user purpose and other for chat store.
Anonymous
https://del.dog/uzalinenam I got same error every time when i access the database through the command line ... Anyone
https://stackoverflow.com/questions/26082128/improperlyconfigured-you-must-either-define-the-environment-variable-django-set
Nikhil
I have to use one database for user purpose and other for chat store.
Two different database or two different tables??
Anaconda
Two different database or two different tables??
Two different database for two different tables
Nikhil
Two different database for two different tables
in your settings you can add databases and use them
Anaconda
But how to use in models.py
Anaconda
How to import the database to specify which table is using which database
Nikhil
How to import the database to specify which table is using which database
u can refer to the django docs on working with multiple database
Anonymous
Guys I'm looking for job opportunity in Python Development I have 1 year of experience Please let me know if there any openings.
Anonymous
My email id vipuljoshi780@gmail.com
Ing. Mario Tamayo
Is there any way to restrict the max size of the media folder in django?
Ing. Mario Tamayo
Is there any way to restrict the max size of the media folder in django?
An app that manages it works for me as well, just need a way
ɱσσɳ
Use the django auth library
okie long way to learn things
Sh
Assalamu alaikum. I have a model with more than 50 coloumns, I wanna ask is it good practice to store many coloums in one table?
Альберт
Hi guys
Aatman
I want to know what is the flow when we excute the import django in command line to work with database or import any model I am confused where to put This line django.setup() In which file?
Альберт
guys, how to get a product from the database and put it in the cart
Альберт
not in the session but in the base to save?
Альберт
View s
Sai
guys, how to get a product from the database and put it in the cart
Make a two tables one for product other one Cart. Fetch the product by product unique I'd and add it into cart. Add a relationship with product
Stump Lowell
Please how do turn spaces to underscores on my slug field database
Альберт
i did, many to many,, can't implement in view
Stump Lowell
Please how do turn spaces to underscores on my slug field database
Like if admin is trying to save a slug field that has spaces it should help him turn the spaces to underscores without any error
Sai
Any
Stump Lowell
Errors ?
Sir any idea on my question?
Альберт
Yes
Sai
Sir any idea on my question?
mystring.replace(" ", "_") Do this and save.
Bunty chhatri wala..
I don't want to store raw password in db
Yes..there are 3-4 types of encryption django provides..
R
In AUTH_USER_MODEL what is the easiest way to make the email field mandatory buddies ?
ɱσσɳ
Udemy
and course name?
R
and course name?
Ping me on the side bro
ɱσσɳ
okie
Roman
Is there a database that do not need to set up for django, but a bit stonger that SQLite ?
Hovo
Hi erevyone 👋🏽. At first sorry for my bad english. Secondly in my django shop products model have two prices(one for original and one for discounted) and then when i want to do ordering products by price it doesn’t work properly. Can anyone help me? Thank you )
Doragonsureiyā
Hi erevyone 👋🏽. At first sorry for my bad english. Secondly in my django shop products model have two prices(one for original and one for discounted) and then when i want to do ordering products by price it doesn’t work properly. Can anyone help me? Thank you )
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
Darth✧
Is there a database that do not need to set up for django, but a bit stonger that SQLite ?
Postgres db ....only u have to set your login credentials in settings
Darth✧
Order by price***
Share your code bro
Hovo
https://del.dog/umypycrovi
devops
How to unistall pip3
devops
Can someone tell me cli command
Pankaj
serializers.CharField accepting integer values in drf. how this happening?
devops
Pip version not any command
devops
While in pip3 it shows
devops
Version
devops
Can anyone help pls
devops
It's urgent
cj
It's urgent
take a number, take sit, and wait to be called
Doragonsureiyā
How to unistall pip3
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
Anonymous
Does anyone used pytest-bdd with django? Should I go with behave that has fully integration?
Anonymous
Hi, What is the best learning source for starting with django..
Sai
Pip version not any command
For that you need to download a file and paste it inside your python folder. Take a help from Google