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
Sandeep
Guys can any 1 tell what is mixins in django
Vishal
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!!!!
Luciano
CodeCypher
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
Luciano
perhaps pythonanywhere.com is good too
Alex
Alex
Bheeshma
Do Not PM Me.
I can't share media here that's why😅
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
Siddharthan
Is anybody having good example tutorial focument django and react full development
Shaikha
Siddharthan
Shaikha
Glad to help 👍🏻
Anonymous
How many request django server can handle at a time?
Xavier
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??
Cheap
Omar
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
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?
Siddharthan
I am getting the below error:
django.db.utils.DataError: value too long for type character varying(20)
Xavier
Xavier
and u trying to give a longer string
Xavier
sooooo
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)
Mirco
By buying them
Sandeep
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
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
Anonymous
Thank you
Anonymous
I am working with windows
Anonymous
ok thank you
Alex
sandeep Do Not PM me
Dennoh
😂