ITz_Ayi
@Carlangueitor please open your DM, it's important.
Charly
If is something related to django use this group
mukul
should I use foreign key?
Depends on your customisation level
ITz_Ayi
If is something related to django use this group
Of course, it's something about django. I'm having tough time linking a particular page from an existing app. It's actually not the usual way. We talked about it the other day...
Anonymous
Anyone who understand django well DM me, I want to develop a web dealing with investments, or a referral program.
Bahar
Depends on your customisation level
can you help me about it? or give me the title of that to search?
mukul
Add everything thing you want
mukul
Then make other classes for other students
Tony
Guys, I made a app in my project which can add and delete users. There are two type of users, categorised by profession, namely teacher and student. I have created a Model, Project. Now I want to enable users who are teacher to add the project and users who are students to submit the project (just add a link text). How to do this? Just tell me the pathway, not everything. Pls help someone guys.
dal
https://stackoverflow.com/questions/65375415/if-javascript-blocks-the-textarea-tag-how-does-the-textfield-get-the-value
dal
Can someone help me?thanks!
Bunty chhatri wala..
There is a select option field Like : <Select> <Option> a </opt> <Opt > b </opt> If user select opt A then details of options A shows if b then B If C then c's detail How to implement this
Bunty chhatri wala..
On change, send a request (AJAX)
Any other option.. indont know JS that much
B
Not that I know :(
H
I am Beginners.. Can You help me
Faisal
Ask your question
Levi
From where can I learn django from scratch? Any course u guys recommend
Endless Life
https://docs.djangoproject.com/en/3.1/
Nurgazy
i can't migrate migrations file?
Faisal
i can't migrate migrations file?
Delet the migrations folder and make new migration seprate seprate of each app
Faisal
Yes
Faisal
Python manage.py makemigrations appname
Faisal
The create migration one by one of each app
Viswa
DoesNotExist at /register/ Group matching query does not exist.
Viswa
getting this error
Viswa
what do i do
Harsh
Hey ! Is there any best quality docs for ajax or any tutorials that I can use in django..
Hamidreza
How to update the values of a page I use Ajax and send a request to the backend every 1 second Is this the right solution? How can I make Django send the amount of what I specified to the template whenever the request is not sent for no reason?
Hamidreza
Hamidreza
Yes
This is a really great idea Thanks for your help
Doragonsureiyā
Anonymous
Having a Valueerror when trying to read a json data in my django....I used...json.loads(request.body)
Anonymous
Please an I need a help
Hamidreza
!yw
when i install Channels in python program give me error Microsoft Visual C++ 14.0 is required so i googled and download Visual Studio Build Tools 2019 And what i install in this program ?
King Phyte 🐍
Doragonsureiyā
Having a Valueerror when trying to read a json data in my django....I used...json.loads(request.body)
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 message (many lines), delete it quick or you may get a warn strike.
Anonymous
Thanks
Anonymous
https://del.dog/My_URL_hook
Sheshadri
https://del.dog/My_URL_hook
Return HttpResponse in except too
Sheshadri
or try returning HttpResponse("Hello")
Anonymous
It now prints the "error".... So how can I be able to read this json data the is my problem please
Harsh
Hey ! Is there any best quality docs for ajax or any tutorials that I can use in django..
Harsh
I am creating mobile recharge app and want a recharge provider api is there any mobile recharge api I know some of this but they are providing very low margin Like 0.3% it's very low Any one can tell higher margin provider
Hamidreza
Never used Windows honestly
ok but, can you read this error django.core.exceptions.ImproperlyConfigured: Cannot import ASGI_APPLICATION module 'owner.routing'
Mirco
ok but, can you read this error django.core.exceptions.ImproperlyConfigured: Cannot import ASGI_APPLICATION module 'owner.routing'
It's related to channels you need to check on SO I did not have too much experience with it
Pouya
hey there, when I wanted to create an object from a model, I got this error: django.db.utils.OperationalError: no such table: main.auth_user__old how can I fix it?
Sheshadri
It now prints the "error".... So how can I be able to read this json data the is my problem please
Its better if you use django-rest-framework for working on REST/Serialization Objects, Please go through https://www.django-rest-framework.org/tutorial/2-requests-and-responses/ this link, its very simple and would help you achieve what you wanted.
Sheshadri
hey there, when I wanted to create an object from a model, I got this error: django.db.utils.OperationalError: no such table: main.auth_user__old how can I fix it?
1. Make sure your app is installed in settings.py 2. Make sure you have run makemigrations and migrate 3. Manually check if the table exists, if it does try removing the table and delete the migration file and redo step 2.
Yuvraj
I did but it didn't work
then try deleting all the files in the migrations folder
Yuvraj
and run makemigrations and migrate again
Cloud
It now prints the "error".... So how can I be able to read this json data the is my problem please
You are printing request.POST print request.body itself for printing data. Output will be bytestring. If you want to read it as python dictionary object, decode the bytestring to string and use json module to convert it to dict object. Then you can do usual operations on data as a dictionary object.
Yuvraj
I did it too
hmm, then i guess try commenting out the model and its imports in different files then makemigrations and then migrate there could have been better ways than this but just give it a try
Pouya
I think it's caused by sqlite
Yuvraj
I think it's caused by sqlite
yes, this happens when migrations conflict which results in different table relations failing which is again a sql error
Pouya
I'm trying to change sqlite to mysql