VY.sh
Aman
Did you delete the previous migration file?
after deleting it worked, Thanks
VY.sh
Kishore
Can anyone suggest where to start for beginners We need to do project in Django for our final semester
Doragonsureiyā
Can anyone suggest where to start for beginners We need to do project in Django for our final semester
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Aman
Based on the result of Maintenance = models.BooleanField(choices=BOOL_CHOICES,default=False) this filed in models.py
Aman
I want this to take values Maintenance_Reason= models.CharField(max_length= 100) In admin page
Aman
How can I do that?
Doragonsureiyā
Can you please share that link
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 first results
Damir
I wrote querysets and i think they are terrifying. Can i post code here to ask if they really are that bad?
Manuel
Has anyone worked with django rest framework
Manuel
When I do an API and I have several post methods inside of a class doing class based views do I have to name those methods the same name or different ??
Manuel
Might be a silly question but it confuse me a bit
Rohan
You can’t have multiple post methods like that
Manuel
For example in a class based views
Manuel
You have several products you want to insert
Manuel
And then you want modify in différents tables at the same time how do I do that in an api
Rohan
You have one post method and all control/business logic in it
Rohan
Not multiple post methods
Manuel
Ok ok
John
query = request.GET.get("query", None)
John
Can anyone help me with this
John
What is the url address to be given for getting the proper output
Manuel
And just let the name of the input
Naresh
if not settings.DEBUG: REST_FRAMEWORK = {'DEFAULT_AUTHENTICATION_CLASSES': 'aps.authentication.DoubleCookieAuthentication', ]} if settings.DEBUG: REST_FRAMEWORK = {'DEFAULT_AUTHENTICATION_CLASSES': [ 'rest_framework.authentication.BasicAuthentication', 'aps.authentication.DoubleCookieAuthentication',]} i tried this but it is in Basic Auth only, please anyone help me how to do
Michael ✨
Has anyone integrated Mercadopago to Django?
NaamMainKyaRakhaHai
Has anyone integrated Mercadopago to Django?
https://pypi.org/project/django-mercadopago/
Anonymous
Is firebase and django is best??
Anonymous
how i can show code?
Василий
how i can show code?
https://pastebin.com
Yabets
How can i start django
Ramil
Hello guys! What better for store development, django or CMS?
Mohammad
sudo docker-compose run --rm app sh -c "python manage.py test && flake8 " Creating recipe-app-api_app_run ... done Creating test database for alias 'default'... System check identified no issues (0 silenced). .. ---------------------------------------------------------------------- Ran 2 tests in 0.002s OK Destroying test database for alias 'default'... ./app/tests.py:1:35: W291 trailing whitespace ./app/tests.py:7:1: E303 too many blank lines (3) ./app/tests.py:29:45: W292 no newline at end of file ./app/calc.py:11:1: E302 expected 2 blank lines, found 1 ./app/calc.py:13:19: W292 no newline at end of file ERROR: 1 please help me!!
Тарек
Hello everyone! I'm begginer, and have a problem: how to transfer some value from view to template trough redirect?
Sam
Hi all Can any one let me know how to apply multiple sorting with django
Ricco
Hi, has anyone here worked with django-tenant-schemas I need help in configuring the templates for the tenants, also do I need to configure my app with wamp server inorder to see all the subdomains created? Thanks in advance.
Ekansh
Hi everyone. I created a project with express mongodb as backend. I'm thinking of creating an admin application for my existing mongodb database with some data in it. I don't want to lose any of the data entered. I looked at the internet but did not get any response on how to migrate existing database to Django admin. Please help if you have some time :)
Doragonsureiyā
how i can show code?
To share code or error tracebacks, be considerate and 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 If you post a wall of text (many lines), delete it or you can get a warn strike.
🅐🅢🅗🅘🅚
Arslan
Has anyone used python social auth before?
odin
I want to build a backend which allows a user to schedule appointment by looking at a service( business service like Salon, Spa, ) calendar and book a slot which is available. It would be great if someone can direct me to right path where there are enough resources to understand basic of scheduling calendar events with django rest framework.
Arslan
yes
I have problems with the token that is returned to me after I send a request for auth/convert-token, when I try to log in with this token, I get this error "detail": "Given token not valid for any token type", "code": "token_not_valid", "messages": [ { "token_class": "AccessToken", "token_type": "access", "message": "Token is invalid or expired" } ]
Arslan
I also use simple jwt
Favas
I have problem i can't upload image when i am hosted but in the local host its working please help me
Anonymous
pls share any pdf documents on python
Arslan
it can be just expired Access tokens usually expires in 1h
No, I check immediately after receiving it
Mirco
No, I check immediately after receiving it
check the token inside jwt.io , to understand if it's a valid one
Demetra
how to get index of item in the list for in djando templates
Arslan
check the token inside jwt.io , to understand if it's a valid one
Here, I get an access token that is too short after the convert-token I checked that token on jwt.io and it says that it's wrong one
Arslan
The token which I get from convert token
Arslan
right now I'm just using Token Authentication and everything works fine, so everything is ok, I won't use jwt
Arslan
With wrong one what do u mean exactly ?
do you know how to collect data in addition to email and first name, last name?
Favas
Favas
Matching query not exist
But there is no issue on local server
Hay
Hello Friend! I got an error installing mysqlclient with pip3
Rahkmanuly
No, I check immediately after receiving it
Probably token dead time is misconfigured. Usually in settings.py you can check it.
Arslan
Probably token dead time is misconfigured. Usually in settings.py you can check it.
No, I guess it is not compatible with simplejwt, because after I put just a Token, everything started working.
Rahkmanuly
Mmm
Arslan
Now I need to get more information from the user account
Arslan
I'm using rest_framework_social_oauth2
Arslan
and i wrote such scope SOCIAL_AUTH_GOOGLE_OAUTH2_SCOPE = [ 'https://www.googleapis.com/auth/userinfo.email', 'https://www.googleapis.com/auth/userinfo.profile', ]
Hemraj
Anyone one can suggest me ??
Hemraj
What i will do ?
Hian
Hello, does anyone know how i can create a view thats doesnt go through middleware?