Anonymous
?
Muflone
You have to serialize it with Json or similar
Amaro
Google - anything will be found, Yandex-anything was never lost
They (yandex) just lost tonn of customer data some time ago.
Antwi
Any help with a library that I can use to write into word and has good styling. apart from python-docx?
Yep
How to import a csv file into sqlite3..im gettin crazy with that... Models/views is set up
Yep
Makemigrations and migrate worked
Yep
But now?
Yep
Google/stackoverflow didnt helped me...
Yep
Csv is in /myapp/blog, like my blog with thr view models and so on itself
Anonymous
Hi, how can I transform this query on django: select P.id_farmer, A.name, P.pointdescription from Farmer A, Parceagri P where P.id_farmer = A.id_farmer
Anonymous
someone here can help?
Anonymous
🙏
Anonymous
share your model
class Farmer(models.Model): firstName = models.CharField(max_length=15) lastName = models.CharField(max_length=15) email = models.EmailField( verbose_name='email address', max_length=20, unique=True) and class Parceagri(models.Model): id_parcelle = models.AutoField(max_length=15, primary_key=True) id_farmer = models.ForeignKey(Farmer, on_delete=models.CASCADE) pointDescription = models.TextField()
Anonymous
which is best ide
Himanshu
which is best ide
I personally use vs code and I think it does the job.
Anonymous
Any one tell me ..How to deploy django website in any web server ..??
Anonymous
I need to check wheather user.groups is superset of some groups list. How to check this on Django ORM?
Avinash
Want to use request object in the rendered template .
Himanshu
Mirco
Want to use request object in the rendered template .
You have access to request into template
Avinash
Ok.
Anonymous
In my profile picture i posted a photo. These all informations in this fields are static and writed in html. So how i can for example take name and picture of logo from my database? And is it possible? And (when logos are many) search from database and view it in site?
Anonymous
and how to put this image into html code?
Mirco
and how to put this image into html code?
Using image url got from model
Anonymous
for example <img url=logos.object.get(photo)>?
sravan
for example <img url=logos.object.get(photo)>?
<img src="{{logos.photo.url}}">
Anonymous
thank you
sravan
thank you
Welcome
Anonymous
Please could you please send it django orm books
Anonymous
does anyone help me out with views,models,forms for my form?
Anonymous
What type of server?
Godday server ,linux based , I want to publish website on internet..
Jesus
Is there anyway to delete the "<th>" tag automatically created when using Django forms? For example, I only want to have two input fields with placeholder in them and not: Username: <input> Password: <input> But:
Jesus
<input placeholder="username">
Jesus
Nevermind, instead of using form.as_table I have just done it manually.
raven
form.as_p
Nick
Why Python cannot be directly used in WebAssembly (an article by wasmdevs)? https://ep2018.europython.eu/conference/talks/lets-embrace-webassembly
Avinash
How to Check whether a model contains an object with username and password , in view ?
Yep
I return in my views.py a name return varName How can i access varNamr in my models.py? Need it for the db
Yep
b = Blog(channel_name = %s % varName) and other "solutions" didnt worked
Yep
All files are in mysite/blog
Yep
Models.py says that varName is not defined :/
JorgeSierra
Hello
Yep
pastebin.com/JqWrdPV7
Yep
I need the chan_name in b = Blog(channel_name=...)
Yep
To put the value in my db...if i type a string in that, like thr channel_view = 'ok', it works
Yep
Yeah
Mirco
Yeah
So use Blog.objects.create and pass to it the channel name
Yep
Okayyyy.... Will try it like that. Im new in django...will google how to do jt with .create, thxs
Yep
I will..big thxs again Micro
Mirco
cvam
how to declare a int variable in django template and performs arthmatic operations ??
cj
how to declare a int variable in django template and performs arthmatic operations ??
you don't want to perform operations in the template, trust me
cvam
you don't want to perform operations in the template, trust me
i just need and flag and increase it by one at defined condition
cj
i just need and flag and increase it by one at defined condition
have you read about https://docs.djangoproject.com/en/2.2/ref/templates/builtins/#add ?
cvam
is it possible to run 2 for loops in a single line in django template
cvam
eg for a in b , for c in d ???
cj
eg for a in b , for c in d ???
is it possible in Python itself? 🤔 (that would be your answer)
Muflone
I don't think is possible in any language in the world
Jimmies San
maybe list comprehensions? something like [(x, y) for x in [1,2,3] for y in [3,1,4] if x != y]
Jimmies San
😂😂😂
Amaro
is it possible to run 2 for loops in a single line in django template
{% for a in b %}{% for c in d%} {# do something with a and c #} {% endfor %}{% endfor %}
Wisdom
hello everyone. How can i implement a finger print authentication on django app?
Wisdom
how do i go about implementing it?
Leo
how do i go about implementing it?
You have to go native.. js cannot trigger fingerprint scanning. That is programming language outside browser.
Sirius
Hello
Sirius
Why I can't send any image to.
Mirco
Why I can't send any image to.
Not allowed, read the rules 😊 Use code sharing tool or image sharing tool