The Summer
Guys how to use range() in template
The Summer
I want to make pagination links
Anonymous
Anonymous
{% for i in range(n) %}
#your_code
{% endfor %}
Anonymous
Hi, everyone. Which good books do you know about django?
Kaushal
drunktimelord
drunktimelord
thx
Anonymous
Yeah, thanks
drunktimelord
there have been a few breaking changes since django 2
👨🏻🦲
hello, I want to save a value in the web browser client, which can only be used in that tab, when opening a new tab will create a new value, for example, in tab 1 I save a value with the name "key1", when opening a new tab, a new value added with the name "key2", when tab 1 closes the value of "key1" is deleted, how do you make it?
Anonymous
Anonymous
?
drunktimelord
👨🏻🦲
1. check if there is a value "Key [1-10]"
2. if the "Key3" value is not available it will be created.
3. When the tab closes, the value of "Key3" is deleted.
what method is suitable for this?
session or local storage?
or use another method?
Anonymous
The Summer
The Summer
The Summer
1.5
Anonymous
The Summer
Jaydeep
MultiValueDictKeyError
in login page while clicking on register button
Please help
Jaydeep
There are two buttons on login page
1st login
2nd register
Kaushal
Jaydeep
Ok
🧩
Somebody used taggit?
Денис
Somebody used taggit?
First: this is a meta-question that is not the best option to start with. Just say what's your problem.
Second: "Django By Example" book has a good working case with taggit.
🧩
Sorry.
I read this book.
My problem is when i parsing articles from site and save it, tags don’t save.
Денис
🧩
Денис
is all the remaining content saved correctly?
🧩
it should save to my models
it's not related to views.py at all
🧩
Денис
how do you parse with django? You should probably create some API commands (views) that just accept requests and save their contents to DB
🧩
i use requests
🧩
or requests_html
🧩
or urllib3
Денис
Alright. The first thing you should check is how your parser executes your model's save(). Is all the information in its proper fields upon saving?
🧩
I'm interested in one thing
In what format to transmit tags (in taggit lib) ?
🧩
string, list?
Денис
em.... list of strings?
Денис
I don't recall
Денис
there's a simple example on GitHub: https://github.com/jazzband/django-taggit
🧩
ashish
Has anyone in the group used nginx rtmp.
I am having problem deploying Django and the streaming server on digitalocean simultaneously, should I have two nginx configuration files or one will do, I have been trying this for days now
sergio
Hello, Django how to reconnect after DatabaseError: query timeout?
any idea?
Anonymous
OperationalError at /app1/register/
table app1_userprofileinfo has no column named age
Anonymous
can anyone helpme in sorting this error
Dcruz
Dcruz
Migrate?
Anonymous
yes i do,but still it comes
Anonymous
sqlite3
Anonymous
Anonymous
but i have declared age column in models file
Anonymous
ashish
Clear your migrations folder except init. Py and run migrations once again
Anonymous
https://del.dog/odigukaruk models.py file
https://del.dog/nagoqixuxu views.py file
ashish
Have you tried clearing migrations
ashish
Because there are no problem in model and view here
Anonymous
Yeah I have cleared migration folder
Anonymous
Can you tell me how to access sqlite3 from command line to check tables
ashish
Run make migrations
ashish
And migrate
ashish
Once more
ashish
Age will now show up
Maksim
when i apply migrations i get a mistake
"django.contrib.messages.context_processors.message must be enabled in DJangoTemplates in orrder to use the application
Anonymous
I have a table with many to many to field, Now i have a variable with nested list(list with multiple list ex. [[],[],[]] like this) i want to put that variable as values to my many to many field by obj.fieldname.set() or .add() method .
But it is showing error unhashable list type .
Anyone can help??
Thanks in advance
🧩
Guys,who know how to convert this " <QuerySet [<Tag: body>]>" to "body"? ( this is lib taggit)
Ghorz
👍👍👍👍👍👍👍