Anonymous
Tell me it is easy or tough
Dharmu
I'm facing this problem
Change directory where your py file stored
Anonymous
Because I have started learning django
Dharmu
How
Take ur error pic and share
Peppe
My project is a exchange crypto platform
Peppe
An*
Peppe
for training
Anonymous
Ok
Rup
i took id as a primary key. not mentioned iin my model.py still i am facing thins error.
Rup
You are trying to add a non-nullable field 'id' to branch without a default; we can't do that (the database needs something to populate existing rows)
Rup
what i have to do? please help
Rup
Branch is my class
Dharmu
Олег
hey, There is a sqlite3 database in the django project, but for some reason the data from there is not displayed, although I did all the migrations. What could be the problem?
Rajni
How should I show all the subject of a particular course in single row in django admin?
Rup
Delete your migration and remigrate
I already have data in my database. Will it effect the data if I delete the migration.?
Peppe
New_wallet=form.save(commit=Flase)
Nope, the wallets always save, but when i create a one wallet with my profile, if this profile create another one, platform return a page error “you have an wallet”
Peppe
https://stackoverflow.com/questions/67286037/why-the-platform-create-a-new-wallet
SNIR
Has anyone build or can guide me to build a mobile webapp that can be offline in django? and when the user backonnline it will send his offlice form submits?
Zoro
Has anyone build or can guide me to build a mobile webapp that can be offline in django? and when the user backonnline it will send his offlice form submits?
django is a web framework as far as i know. you have to write a program with something like react native, and use django as a backend server.
Rishabh
how to get rid of type error expected string or buffer......is it because loads expecting string ?
Doragonsureiyā
how to get rid of type error expected string or buffer......is it because loads expecting string ?
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
cj
I'm human here, here I answer you: 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
Rishabh
yep but I didn't get a satisfactory answer this is the reason asked here
cj
yep but I didn't get a satisfactory answer this is the reason asked here
then search again and again... because with your message lacking details, it's hard for a human to help you, humans don't read others minds, so if you don't provide details like your code, inputs/outputs, saying what you're doing, etc, etc... it's almost impossible to help you
Rishabh
okay got it
Anonymous
Can anyone help me out? Whats the proper way to unittest FileFeilds, I read answers on stackoverflow, but for me it becomes more difficult test both Model and View P.S can i use Selinum ( idk weather ot is used for this)
Anonymous
Nope, the wallets always save, but when i create a one wallet with my profile, if this profile create another one, platform return a page error “you have an wallet”
Before saving the wallet check if user has wallet or not(by looping) if yes then show already exists error page, if user doesn't have a wallet create one and return success page...
Peppe
Nope
.
Hi there! Why simple_jwt is not working for simple user(not super user). I can get token only for superuser. Maybe someone knows how to solve this problem..
منتظر
django.core.exceptions.ValidationError: ['“2” value must be either True or False.'] what I could do 😢
منتظر
Expected Boolean instead of string
I will try to delete the date base and try again
Ganesh
I will try to delete the date base and try again
Don't delete first check the data which you're passing if it's integer then then the check it's model field see if it's boolean field or integer
Mirco
I will try to delete the date base and try again
It's not about data in database It depends on data you pass inside your view
منتظر
oh, thank you 🙏🏻🙏🏻
Anonymous
I did this repo , but I am stuck at how sqlite < celery > redis work https://github.com/SkyBulk/celery
Leodeth
good afternoon! how can i update 2 models! table1(principal table) and table2(this has the foreigh key of table 1)
Anil
Hii there?
Anil
Can anyone tell me how to deal with multivaluedicterror in Django while adding two numbers?
Anil
Help me out dudes
Michael ✨
hi, does anyone know why when I use the GET method to get the information from a form, the "@" reads it as "% 40"?
👍
Hi guys, I wrote some test cases and those are woking fine in my local but when I run them in Bitbucket Pipelines they all are failing. I am getting : """ Traceback (most recent call last): File "/opt/atlassian/$DB_NAME/agent/build/category/tests.py", line 27, in setUp token = response.json()['content']['token'] File "/usr/local/lib/python3.7/site-packages/django/test/client.py", line 655, in _parse_json % response.get('Content-Type') ValueError: Content-Type header is "text/html; charset=utf-8", not "application/json" '''
LLU
Hi
LLU
Tell me please, how send data on other django server?
Michael ✨
hi, does anyone know why when I use the GET method to get the information from a form, the "@" reads it as "% 40"?
👍
👍, [28.04.21 10:00] Hi guys, I wrote some test cases and those are woking fine in my local but when I run them in Bitbucket Pipelines they all are failing. I am getting : """ Traceback (most recent call last): File "/opt/atlassian/$DB_NAME/agent/build/category/tests.py", line 27, in setUp token = response.json()['content']['token'] File "/usr/local/lib/python3.7/site-packages/django/test/client.py", line 655, in _parse_json % response.get('Content-Type') ValueError: Content-Type header is "text/html; charset=utf-8", not "application/json" ''' LLU, [28.04.21 10:41] Tell me please, how send data on other django server?
Michael ✨
urlencoding
How can I correct it?
Akash
Hi, When I run command in terminal as Python manage.py makemigrations It shows me - no changes detected Then I made changes in setting.py as 'product.apps.ProductsConfig' But still it shows no changes detected
Akash
How to solve this issue
Вячеслав
Did you change a model?
Вячеслав
I meant your changes was in the model?
Akash
No
Charly
How can I correct it?
its normal have urls with that, but are you having issues reading on a view? can you shows us the code?
Charly
No
then why you want to do a migration?
Вячеслав
No
Makemigrations creates migrations files and executes only if there were changes here.