Anonymous
Guys, do you have any problems with django 4+ or should I stay a bit in 3.2+ stable version? I heard about some issues related with postgres but seems like its not relevant anymore
Of course it is stable version , Because the structure has not changed It has been improved ,If you see a problem with the code, you will be able to solve it quickly
Anonymous
do not worry
Anonymous
Actually I do not use PostgreSQL on my projects now
Haneen
django.db.utils.OperationalError: could not translate host name "db" to address: Temporary failure in name resolution
Haneen
Help
Haneen
I did it
Д
Error when i write docker compose
your problem is a Docker-problem
Haneen
Be specific 😥
Д
Be specific 😥
"Temporary failure in name resolution" has nothing to do with Django or Python. also db is probably a hostname inside the Docker network, which it's not finding.
Oleg
Guys, what's your favorite way of writing django's APIs -> do you separate one common directory "api" from apps or do you create an api directory in each app? 🙃
Jack Sparrow
Guys,Im creating a signup Form And i want to validate both passwords is same or not. I used Clean Method but its not working. Signup sucessfull either password match or not match.Please Help
Jack Sparrow
def clean(self): cleaned_data = super(feedbackform, self).clean() password = cleaned_data.get('password') password_confirm = cleaned_data.get('rpassword ') if password and password_confirm: if password != password_confirm: raise forms.ValidationError("The two password fields must match.") return cleaned_data
Tushar
whats the task ?
AL
please help
#!/bin/sh Inَactive
what service do u use?
#!/bin/sh Inَactive
aws
this should be it https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html
AL
thank you
AL
all
Shazeb
should i allow both www.example.com and example.com in my django project?
Shazeb
if i use https://www.example.com/?test i'm getting 400 bad request
Charly
should i allow both www.example.com and example.com in my django project?
Not a good idea, choose one redirect to the other (and this is better applied on the webserver)
Shazeb
yes, allowed only one
Shazeb
and i'm redirecting all
Shazeb
but i'm getting 400 only if there is something like www.example.com/?test
Shazeb
if i access this, i'm getting 400 bad request
Shazeb
its redirecting
Doragonsureiyā
its redirecting
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Shazeb
https://www.quickhighprotein.com/?ref=test
Shazeb
if you open this you can see 400 bad request
Shazeb
but if you remove /?ref
Shazeb
its will redirect to the main website
Maxim
if you open this you can see 400 bad request
no one can tell you why you get http 400 without seeing the code
Shazeb
i'm not sure what to show
mr
is there anybody using ckeditor codesnippet plugin?
mr
golang code doesnt get syntax highlighting and I wonder why
mr
monokai_sublime
Narayan
I need inventory management source code if anyone have please send me
Narayan
Have you tried "the Google"
Yes there are many but problem is they are using SQLite , some are docker , but i need with MySQL.
Nikhil
can anyone help me how to resolve circular dependency error?
Nikhil
none of my command is working runserver makemigrations
Д
people make it actively difficult to help them; I don't mind solving problems but when I have to figure out what the problem is first with the help of a person who doesn't have the sense to figure that out, it's just...
Nikhil
????
Д
????
you're not the only one. you're one in a looong line of people
Д
would it be useful to know "how is your system not working" for instance
Д
would it be useful to know how do you know it's a circular dependency?
Д
would it be useful to know what have you tried to solve it already?
Д
the answer to all of those questions is: yes, it would be very useful.
Nikhil
would it be useful to know how do you know it's a circular dependency?
i am migrating my project and thats what i am getting as a response
Nikhil
raise CircularDependencyError(", ".join("%s.%s" % n for n in cycle)) django.db.migrations.exceptions.CircularDependencyError: register.0001_initial, myapp.0002_todo_list_user, myapp.0003_auto_20220401_1534
Д
hmm interesting
Д
can you just delete all the migrations and restart?
Nikhil
i tried
Nikhil
i messaged in this group after trying resolving it myself
Nikhil
😢😢
Д
there is no clear solution to this. the debugging process requires understanding your system
Д
I'm not sure what's causing the circular dependencies. are the models somehow circularly dependent or is there an import problem or what
Д
or maybe you directory structure is bad
Д
delete all the __pycache__ stuff too to be sure
Д
can you also delete the database and start from zero?
Nikhil
let me try that
Д
delete the DB, create the migrations from scratch and try to migrate to an empty DB
Д
It worked Thanks
pro tip: post the information needed to solve the problem next time
ivan ulchich
Has anybody idea how to implement query to PostgreSQL JSONB Field using function jsonb_to_recordset in Django ORM ? Without raw queries
Suraj
Hi all, Everything seems to be fine in the code section but my form is not getting posted
Suraj
Can anyone help