Jimmies San
and so on
Django Bot
>> Links - Splunk 6.5 is not run django app? - Question | Splunk Answers
R
How would you make a to model field to accept empty values unless another field of the same model instance has an specified value?
Rust
How would you make a to model field to accept empty values unless another field of the same model instance has an specified value?
You can write a check in model clean methods: https://docs.djangoproject.com/en/2.0/ref/models/instances/#validating-objects
R
Thanks
Django Bot
>> Links - Need a minimal Django file upload example - Stack Overflow
r0b0t
I have a CreateView but I want to get the parameter passed in the url.. How would I do that?
Django Bot
>> Links - aws-workshop: Learn to deploy real applications in a scalable way, using Am
inchidi
Does it have to be in a function?
you can access it from any class method of any generic views
r0b0t
you can access it from any class method of any generic views
Thanks!! It's been bugging me for days... I was using self.kwargs() no self.kwargs[]
Combot
Virtual Boyfriend has permanently banned Mr. Burns!
Milan
I think you can try sum() alike function for multiplication like prod(). But Guido Rossum refused it for python.. So make your owns. More about this:
Milan
https://stackoverflow.com/questions/595374/whats-the-python-function-like-sum-but-for-multiplication-product
inchidi
Writing custom template tags
Django Bot
>> Links - django-bakery — django-bakery 0.10.5 documentation
Syed Jafer
What does abstract base user and baseuser manager does
Jimmies San
What does abstract base user and baseuser manager does
have you check the django docs? is really well done. you can find all. if you have problem to understand: ask to community.
Jimmies San
https://docs.djangoproject.com/en/2.0/topics/auth/customizing/
Jimmies San
google is the best friend if you want to learn.
Syed Jafer
I did it . But i cant understand
Jimmies San
what you dont understand? if you need to customize the auth use rmodel you can use that classes. finish. that's all.
Syed Jafer
Their internal working
Jimmies San
have you tried to read the code? to understand internals you need the code.
Jimmies San
and to read the code you need to know django, OOP, python and so on
Syed Jafer
I did this one for custom user but came across some tips jn stackocerflow about managrrs . So i am asking things ti clarify
Jimmies San
I did this one for custom user but came across some tips jn stackocerflow about managrrs . So i am asking things ti clarify
https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html
Jimmies San
try this
Pruthvirajsinh
I want to learn python with django give me a source and guideline please
Jimmies San
I want to learn python with django give me a source and guideline please
search tutorial on this chat you will find a lot of resources
Anonymous
Guys I want to learn Django Could you tell some good resources to learn it
Jimmies San
guys seriouslly????? 😂😂😂😂😂😂😂
Django Bot
>> Links - DjangoTricks: Data Filtering in a Django Website using Elasticsearch
Django Bot
>> Links - Welcome to Django Q — Django Q 0.9.2 documentation
Audacious Tux
hi... anyone worked with graphql ?
Audacious Tux
how you manage manytomany relationship in mutation?
Jimmies San
@pythonres
may be is better if we add a point with @pythonres on the pinned message with rules?
Jimmies San
oh you do that, cool :D
Anonymous
Hi all
Syed Jafer
Hi
Anonymous
I need a software designer who knows about china api
Leshaze
Someone around who is working with flask?
Abhi
Dont ask to ask question, just ask
Leshaze
the thing is. I have a form for a LP. with title, artist, release date etc. I defined two classes. one for the LP and one for the Artist. the LP class looks like this: class LP(db.Model): def init(self, title, label, artist_id, release_date): self.title = title self.label = label self.artist_id = artist_id self.release_date =release_date id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(64), index=True) label = db.Column(db.String(64)) release_date = db.Column(db.Date()) artist_id = db.Column(db.Integer, db.ForeignKey('artist.id')) and the Artist like this: class Artist(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.relationship('Platte', backref='artist', lazy = True) my problem now is, I don't know if flask is writing on its own into the Artist DB or if I need to query it on my own
Leshaze
what I would do without the framework. I would query the artist db, check if the artist is already in the db or not. when he is in there, then pass the id into the LP db as artist_id. or is this the right way?
Jimmies San
get_object_or_404
Leshaze
http://flask.pocoo.org/snippets/115/
thanks but my problem is not the object from the db. its the problem filling two dbs with a relation out of one form
Leshaze
ok, I solved my problem.
Anonymous
Hi
Meera
hi
Meera
i want to make a django app having an Post API whenever API calls the caller should pass a parameter of status to True/False whenever the API calls with the status change (say True to False) the django app should render a simple html page saying Available/Unavailable if Status turned from false to true the html page should show Available and vice versa it would be so helpful for me if anyone help me out thanx
Rohan
Where are you stuck ?
Leshaze
I am trying to use flask-bootstrap. It is already installed and in my opinion working. the bootstrap.js is included in my finale page and some items are correctly converted. However the Navbar ist not working properly. Is ist because I dont have the bootstrap folder in my pycharm project or is this directory in the venv?
Arjun
I want to do search functionality in my django page any good idea?
Arjun
If i type a 3 letter word of column it should show the values containg that word
Anonymous
Hi
Anonymous
Can any one pls tell does this software belongs to this group ??!;;;;;!!!!
Anonymous
Who made this pls tell me
Anonymous
Pls tell
Jimmies San
@curo_oo7
Jimmies San
what are you doing?
Anonymous
I am asking
Anonymous
Can anyone hete
Anonymous
Who made this software
Anonymous
It belongs to django group
Jimmies San
you'ar edistributing django.exe is a virus for sure
Anonymous
Who made it
Django Bot
>> Blogs - python django Automatic Testing part 4
Maz
i have a question...how do i link html pages within django?
Maz
how do i write the {% url %} linking index and kids page?
Jimmies San
@fly_guy254 for the love of the gods: use a DPASTE like site