Rohan
Postgres
JSON fields
Rohan
I can think of having just one table and a JSON field
Rohan
Then store whatever the hell I want
Anonymous
I can think of having just one table and a JSON field
Okay, I'll look into that. Thanks for the answer
Anonymous
Plz one problem solved it....
Anonymous
Admin page not showing css
Anonymous
In django
Pixelated
Just wondering, what do you guys use for animating frontend components, just a css based ones or any js framework
Anonymous
Admin page not showing css
By some chance, are you using windows?
Anonymous
did you searched in stackoverflow, you'll probably found your answer there
Anonymous
While you're running the server, there will be logs of which files are executing in the server, i.e /Get some url check those, which one's failing and try to fix that static media whichever is failed to /Get
Batman
Hey guys. How can I return to last form filled after catch some error? I just know render a blank form to fill again
you might be checking whether the form is valid, by passing the request data to a form instance, just return the same instance with invalid data back through the view, then it won't be blank anymore
Batman
Admin page not showing css
is DEBUG set to False?
Anonymous
is DEBUG set to False?
Whic setting that
Batman
Whic setting that
inside settings.py, check value of DEBUG variable
Batman
Ok check it
what's its value?
Anonymous
Ok check it
The debug value should be True.
Batman
The admin panel css is not showing
you need to check whether DEBUG is set to False as well^
Batman
It is false
then you'll need to server static files on your own... as documented here
Anonymous
Sumit
Can anyone help me in this https://stackoverflow.com/questions/59518320/trying-to-validate-a-django-model-before-it-get-saved-in-database-using-a-post
Anonymous
Good morning everyone, I am new in Django freamwork , so wanna ask about this framework and any advice could you give me about it. Thank you my regards,
Sumit
can a compliance law be part of multiple compliance groups?
A compliance group will have one complaince law and it can have multiple compliance from that same law
Marvin
try obey the testing goat book
Great. Took it up.Was comparing it actually to packt.
Anonymous
Can anyone please help me with frontend?
Anonymous
I have a some front-end code but its not responsive
Dhinesh
So wt, make it responsive with sementic UI
Anonymous
So wt, make it responsive with sementic UI
https://codepen.io/AgentRR007/pen/VeQmyz This is the code..i want to make it responsive
Batman
A compliance group will have one complaince law and it can have multiple compliance from that same law
if a complicance law, can only be a part of a given complicance group, it would be better to change the relationship from a foreignKey to a OneToOne Relationship instead
Batman
https://codepen.io/AgentRR007/pen/VeQmyz This is the code..i want to make it responsive
not a frontend group, you would get better responses if you asked this in a frontend group
Sumit
if a complicance law, can only be a part of a given complicance group, it would be better to change the relationship from a foreignKey to a OneToOne Relationship instead
Yeah thanks for that, But How can i validate compliances in compliance_group as I think the clean_field method doesn't working here
Sumit
validate at the serializer level instead of the model level
As I am new to this, can you tell me how to validate at serializer level coz i have no idea how to do this
Batman
As I am new to this, can you tell me how to validate at serializer level coz i have no idea how to do this
Refer to this, to write a validate_<field_name> method, and this to raise the appropriate validationError
__getitem__
Anyone here has ever used codechef ? When we submit a solution, it runs test cases in background and gives us a dummy page. When evaluation is over, the dummy page is removed and our result ( verddict) is shown. I want to achieve similar functionality in Django. Any idea how to do so ? Basically, I want to have a dummy page till the process is running in background. It should go away only when background process is stopped.
Pixelated
I'd mainly use css and bootstrap
That's what I'm doing now. I'm really bad with frontend, learning js, so probably will move to react or vue
Batman
Didn't got success
share your code
Sumit
share your code
The thing is that I don't know how to write validation query for a many to many field
Ajay
Guys any one suggest me auction code
Ajay
In django
PV
Yes, you can even code on an android via ssh (termius is a lovely ssh client app) using raspberry Pi
Macurrent
Yess
Can you help me with the source code??
Nurbek
How can I filter objects with russian chars? __icontains doesn't work. Django docs says that SQL insensitive string comparison only works with ASCII chars ☹️
Nurbek
Any help?
Anonymous
Or use 1C =)
Nurbek
Can u clearify?
Anonymous
Can u clearify?
Put russian char in quotes.
Nurbek
Just a sec
Anonymous
Waiting
Nurbek
https://codeshare.io/2Kq1bY
Nurbek
here is my code
Nurbek
I cant use Quotes as its a variable inside the class
Anonymous
I'm paranoid to follow links
Anonymous
Wait, I will turn on vpn )
Nurbek
Omg its just a codeshare😃
Anonymous
Omg its just a codeshare😃
Recently I learned about hackers attack, and now I using proxy, vpn and don't follow links. ;)
Anonymous
https://codeshare.io/2Kq1bY
Sorry, I don't help you with it. I think one of 4914 members will help you )
Seetharaman
Django cart model
Meh
Hi