Vishal
hi friends can you help me please about this error File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "E:\python\django\lockdown\practice\polls\models.py", line 10 def__str__(self): ^ SyntaxError: invalid syntax here is my code class question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def__str__(self): return self.question_text
Xavier
now tell how to call js function inside template tag??😂
no that's not how it works template tags are django specific u need to write a js script which detects it and sets the display: none/block according it's not that difficult if pulled of correctly
Sandeep
Guys can any 1 tell what is mixins in django
Udasi
I'm using django-allauth and trying to customize templates, but when i try to wrap the whole code in a <p> tag, the change doesn't apply... any help would be appreciated!
Alex
Yes alex
In templates you cannot simply use as_* methods because formsets use special hidden inputs https://docs.djangoproject.com/en/3.0/topics/forms/formsets/#understanding-the-managementform https://stackoverflow.com/questions/11324723/can-i-use-multiple-number-of-formset-in-a-single-form-in-django-if-yes-how
Alex
I mean in case you use multiple formsets
Luciano
Thanks @alkalit, I'm still a little bit lost but I'll do some research. Thanks a lot!!!!
Alex
Thanks @alkalit, I'm still a little bit lost but I'll do some research. Thanks a lot!!!!
Not every day people ask good questions here. Usually they ask smt like "I having errer NameError: name 'cyka' is not defined what do?"
Alex
All questions are good.... please before u scare people from asking questions
That's offtopic and I'm not going to discuss it here. But in my opinion - no. Unless you are paid.
Bheeshma
Will Linux shared hosting be good option to host Django Site. I have already googled, but not satisfied with any answer.. not useful
Anonymous
Guys can anyone guide me to how do people view my website
Luciano
perhaps pythonanywhere.com is good too
Bheeshma
Do Not PM Me.
I can't share media here that's why😅
Alex
I can't share media here that's why😅
You should ask permission to PM someone. Otherwise it may cost you a warning or even ban. You can share links.
Alex
And I'm really not the best person to be asked about hosting things.
OnlyGod
Hello all, how can I create forms in foreignkey django model?
OnlyGod
Hello all, how can I create forms in foreignkey django model?
for example using a Book and publication model
Siddharthan
Is anybody having good example tutorial focument django and react full development
Shaikha
Shaikha
Glad to help 👍🏻
Anonymous
How many request django server can handle at a time?
Shihasz
How many request django server can handle at a time?
Do you mean django development server in your local machine?
Gil
How many request django server can handle at a time?
Interesting question, complicated reply! It depends of the code,machine... and WSGI Look at https://docs.gunicorn.org/en/stable/design.html#how-many-workers
Anonymous
How you solve it =============== Lets say A is child of B B is child of C C is child of D Continues ...... infinitely like this What i want is getting grandfather list for the given child How i solve it Store comma separated list of their grandfather id when child created within textarea field like this grandfather =[id, id, id, ....] then i got child grandfather list from this stored ids Is it good solution ???? if it is good, can textarea field stores unlimited comma separated id list??
Bershawi
hello I suggest to make meet up weekly to discuss the new things on django who agree
Bershawi
I want to work in a real project as a practice if you have suggestion because I'm Junior and need to have some real experience
Hassan
Dataset is available on google
Hassan
You can fetch posters for free from TMDB
Unknown
Freelancing
What is the best website for freelancing according to you?
Doragonsureiyā
What is the best website for freelancing according to you?
Your question is not related to Django. Please move to @PythonOfftopic group and ask there.
Siddharthan
I am getting the below error: django.db.utils.DataError: value too long for type character varying(20)
Xavier
and u trying to give a longer string
Xavier
sooooo
Xavier
u have given max_length=20
either set the number higher (preferred) or go with a smol string
Siddharthan
Thanks working now after fresh migrations
coderss
How to apply background image in style I had used .. Style ="background-image:url({% static 'home/images/slide_1.jpg' %})" And Style ="background-image:url('{{STATIC_URL}} home/images/slide_1.jpg')
coderss
Both r not working
Sandeep
Guys is there anyway that I can store the error messages in a variable? ( Includes error line number)
Alex
Guys is there anyway that I can store the error messages in a variable? ( Includes error line number)
Python has the ability to work with tracebacks which contain stack information. Google python traceback module
Mirco
By buying them
Pappu
How to write where clause query in jango...
Alex
!djangotut
Doragonsureiyā
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Alex
How to write where clause query in jango...
You need queryset's method filter. Google django queryset api
Mirco
How to write where clause query in jango...
YourModel.objects.get(id=1, name='foo') The comma is needed to make a WHERE clause , the same for filter and so on
Pappu
Thanks
Mirco
Doragonsureiyā
Thanks
You're welcome! 😊
Mirco
Click on the first link
Mirco
You can export it as PDF
Mirco
I think you are smart enough to go on Google and do it by yourself
Alex
you can open for your self something like dash https://kapeli.com/dash
Alex
it is for mac, but there is an analogue for other os'es.
Mirco
Cool 🙂
Anonymous
Hi all I am just download this project from github
Anonymous
https://github.com/raszidzie/django-advanced-signup-tutorial
Anonymous
when i run $ python manage.py makemigrations accounts I got this error
Anonymous
Permission denied
Anonymous
need help
Dennoh
when i run $ python manage.py makemigrations accounts I got this error
Create your virtual environment python3 -m venv venv in the project Activate it Install requirements pip install -r requirements.txt
Anonymous
Thank you
Anonymous
I am working with windows
Anonymous
ok thank you
Alex
sandeep Do Not PM me
Dennoh
😂