agwayne
Is this username a binary form of lettuce ?
2223434554545676878975⁵334355656576654
Hmm, i ve never encountered this situation
2223434554545676878975⁵334355656576654
Is this username a binary form of lettuce ?
No it is just randomly written
2223434554545676878975⁵334355656576654
Can anyone say how to use POST.get() method
2223434554545676878975⁵334355656576654
No it contains meaning in its confused string
Doragonsureiyā
Can anyone say how to use POST.get() method
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
Suraj
Any one give me the suggestion how we can compare user data with each other
Suraj
In array list like the multiple fileds first-name last-name email password password2 roles how to compare this fields each other
Alex
Can anyone say how to use POST.get() method
https://docs.djangoproject.com/en/3.2/ref/request-response/#django.http.HttpRequest.POST https://docs.djangoproject.com/en/3.2/ref/request-response/#django.http.QueryDict In [1]: from django.http import QueryDict In [2]: qdict = QueryDict() In [3]: isinstance(qdict, dict) Out[3]: True
Alex
In array list like the multiple fileds first-name last-name email password password2 roles how to compare this fields each other
It depends on what do you actually want. If implement it as you asked from operator import eq from functools import reduce l1 = ['abc', 1] l2 = ['abcd', 1] l3 = ['abc', 1] reduce(eq, (l1, l2, l3)) # False
Suraj
We want to separate the data as per input
Alex
We want to separate the data as per input
Sounds great. But this doesn't explain anything to me.
Suraj
If user inputs first-name last-name email we want to compare it and separate in the response data
Manish
https://stackoverflow.com/questions/68635482/is-it-possible-to-nest-two-different-model-serializer-into-one-with-no-foreign-k
Bwaks
Hey is it able to copy project folder from windows ....to USB then install the project to Linux mint
Alex
Hey is it able to copy project folder from windows ....to USB then install the project to Linux mint
Better use git. You cannot move virtualenvs and as far as I know you cannot move pyc files between different platforms as well.
Focky
Hey is it able to copy project folder from windows ....to USB then install the project to Linux mint
You can copy all files, except Venv folder.. make a requirements.txt and copy all to usb »» On new computer.. paste files, create venv, active venv and do pip install -r requirements.txt.. after all this, you'll be fine to go
Mirco
Let me try
use Git instead of USB, it's 2021
VISHNU
I am getting the result in elasticsearch with the first keyword result for example if I type django example it's showing results starting with django not django example as first result.
N3CRO
Anyone up here?
N3CRO
I got an issue with custom user model in django, basically i have created a model by extending the class abstractbaseuser
N3CRO
While logging with a staff user its not allowing me to see any apps neither i cn edit anything
N3CRO
Could anyone help me on this? Cause i have searched everywhere about this issue but none did the job!
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Vivek
guys how can I restrict access of a particular url to a my own IP address in django? let's say I have an admin app in my django project and I wish to restrict the access to the urls in that particular app to a particular ip address then how to do it?
foxyy999
i am running the command: sudo docker-compose run web python manage.py migrate and i am getting the error: django.db.utils.OperationalError: could not translate host name "db" to address: Temporary failure in name resolution can anyone help me out, how can i resolve this
Alex
guys how can I restrict access of a particular url to a my own IP address in django? let's say I have an admin app in my django project and I wish to restrict the access to the urls in that particular app to a particular ip address then how to do it?
> to a my own IP address Are you sure you have static IP? Well, you could implement it with custom middleware, I think https://docs.djangoproject.com/en/3.2/topics/http/middleware/ by checking incoming path and the IP.
Vivek
> to a my own IP address Are you sure you have static IP? Well, you could implement it with custom middleware, I think https://docs.djangoproject.com/en/3.2/topics/http/middleware/ by checking incoming path and the IP.
No its Dynamic, but the IP range and the subnet remains the same. If we can somehow specify one ip address then I believe we could specify a range of particular of ips as well?
Vivek
Thanks
foxyy999
I guess some fuckup with your DATABASES.host settings and db host.
https://dpaste.org/0SHN here i mention my setting.py and docker-compose.yml files. plz, can u check and tell me where i am making a mistake
DARAMOLA
hi who can help me host my application it not working on heroku because of django suit
foxyy999
Hm, did you launch the postgres container? Does it run?
i didn't make the postgrs container, i m learning to use the docker, so i didn't have the idea
foxyy999
what issue are you facing?
i am getting the error: django.db.utils.OperationalError: could not translate host name "db" to address: Temporary failure in name resolution
foxyy999
docker-compose up -d
okay i will try that too
Manik
Hello everyone. Actually i just start learning django. I make a admin page in web server but unable to anything. Please someone help
foxyy999
docker-compose up -d
Thanx , this resolved my error
Alex
Thanx , this resolved my error
so the postgres simply wasn't running.
foxyy999
Yeah
Manik
https://docs.djangoproject.com/en/3.2/intro/tutorial01/
I have already gone through this and watch lots of videos but don't know why only admin page run and nothing else work
Manik
> nothing else work Sounds nothing. Are you getting an error or what?
I mean to say server is not updated automatically
Manik
Can someone help?
agwayne
Added to installed-apps ?
Kabir
How to use events inside jinja tag? I need to iterate the for loop onclick?
Kabir
can someone help?
Nikita
Good afternoon. I am interested in the question whether I can file models.py, make a folder, and there are already several files in it that will be automatically uploaded to the project? I need this, because I have a lot of additional tables in one project.
Anonymous
Good afternoon. I am interested in the question whether I can file models.py, make a folder, and there are already several files in it that will be automatically uploaded to the project? I need this, because I have a lot of additional tables in one project.
The ideal way is to split parts of your API/website into 'apps' (python manage.py startapp foo) Add the application in your settings and then put your models in foo/models.py
Anonymous
but sure you can chuck all of them in one place too. Not clean though
Nikita
Since there are a lot of fields there.
Anonymous
sure you can write them as sub modules and import then into app/models.py
Firdavs
hi, I change timezone in settings but it doesnt work it lasts 5 hours
Aryan
C:\Users\LYyvet1JRpfow927XUoPtmgataMC5m5aLewzNYUP-32\lib\site-packages\django\core\handlers\base.py, line 311, in check_response
Aryan
i am gettin this error help me ppllz
Aryan
"instead." % name
Axmadullo🦁
Who can help me for my questions
Doragonsureiyā
Who can help me for my questions
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
Axmadullo🦁
TypeError at /courses/subject/about/11/ anotherView() got an unexpected keyword argument 'pk' Request Method: GET Request URL: http://127.0.0.1:8000/courses/subject/about/11/ Django Version: 3.2.5 Exception Type: TypeError
Axmadullo🦁
TypeError at /courses/subject/about/11/ anotherView() got an unexpected keyword argument 'id' Request Method: GET Request URL: http://127.0.0.1:8000/courses/subject/about/11/ Django Version: 3.2.5
Axmadullo🦁
path('courses/subject/about/', anotherView), path('courses/subject/about/<int:id>/', anotherView),
.
Hah, lol