Oui
in DATABASES 'OPTIONS': {'charset': 'utf8mb'}
Oui
And i have only mysql server 8.0, not 6.1. C:\Program Files\MySQL\MySQL Server 8.0\share\charsets . Why is Django looking for C:\\Program Files\\MySQL\\MySQL Server 6.1\\share\\charsets\\) 😟
Виктор
In Sqlite 3 migrate works?
Виктор
Mysql settings utf8 on?
Oui
Its all right?
Leo
Ah shit. Here we go again
Mirco
Could u avoid this kind of questions please ?
Bunty chhatri wala..
??
Mirco
Post it into @python It's not related to Django
cj
So? Guys, help plss
why are you using MySQL on Windows?
Dextroleav
I need some help
Dextroleav
I m making a book store , and i created 3 views buy,my_orders,cart. Lets say i bought 2 books and then when i click on my_products it shows me both the books but for 2 times, i.e total product in my_product is 4 instead of 2
Dextroleav
I need help plz anyone
Master
Check how you save your orders. Do your books and orders have an unique IDs? If so, do you save your orders twice? Anyway, without code we can give you some guesses, but thats max
Dextroleav
How can i post the pics here
Master
Don't post pictures here. Use pastebin services like https://pastebin.com/
Master
Or put your project on gihub and share link. I doubt you have a commercial restrictions now
Dextroleav
Ok i will give u the github link
Oui
In Sqlite 3 migrate works?
Yes, in sqlite migrate works
Dextroleav
Or put your project on gihub and share link. I doubt you have a commercial restrictions now
https://github.com/Rajshekhar126/Book_Store-Django?files=1 This is the link of my project please help me out
cj
Why not?
🤷🏻‍♂ why yes?
Виктор
Yes, in sqlite migrate works
U need to change encoding - >utf8 settings in mysql
Oui
U need to change encoding - >utf8 settings in mysql
Iam changed utf8mb to utf8mb4 and in mysql "alter user 'x'@'x' identified with mysql_native_password by 'x';"
Oui
It works!
Виктор
Good job
Orack
+1
Orack
i also need that
Orack
w8 not this
Orack
can u share ur models and what value u need to modify
Orack
ithink u will need to get that bilanco object from database and update the value
Orack
ie keep a seprate instance for bilanco
Orack
daym
Orack
Im moving to flask it feels super easy for api If i keep on learning django at this pace it will tak more than a decade ;-;
Orack
FastAPI is faster 😊
now what is fastapi 😐
Mirco
now what is fastapi 😐
look for it on the web 😊
Orack
FastAPI is faster 😊
seems good 🧐, codewise looks 90% same as flask
Orack
is it stable ?
Mirco
the only difference is the wideness of the community
Adil
Hi, guys! I'm having a little problem with Django especially with setting the path for templates. Could u help me, please? I can post a screenshot of the problem if needed
Adil
Ok, ill send it to ur account here is not allowed to share media
Dextroleav
Ok
Jorge Luis
Anyone can show me a snippet of Django with PayPal, MasterCard or other online payments methods
Anonymous
hi,everybody) why the Django Template Language does not work) That is, I added the item but does not show on the site) f.e {% extends "base.html" %} {% block content %} <h2>main</h2> {% for item in items %} {{ item }} {% endfor %} {% endblock content %}
Muflone
from where you use the template
Muflone
what have you passed to the template and how?
Anonymous
what have you passed to the template and how?
Thanks, I found and "fixed" the problem)
Muflone
ok
Artem
Hi guys! I configured Django to work with Apache. If I run Django from virtualenv it works well, but when I run it throgh Apache I get error "SQLite 3.8.3 or later is required (found 3.7.17)"
Artem
Why Apache don't see new sqlite3 version?
Rajat
How to create triggers And stored procedures from models?
Anonymous
Rajat
It is equivalent right?
Rajat
And anyone have a guide to deploy machine learning models with django and restframework specifically a guide to searializers
Stenly
Hello, a question on DRF. Tell me, how to edit an existing entity and create a new one within one transaction?
Sacs
PermissionError at / [Errno 13] Permission denied: '/data/data/com.termux/files/home/sacs/templates/index.html' Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: 3.0 Exception Type: PermissionError Exception Value: [Errno 13] Permission denied: '/data/data/com.termux/files/home/sacs/templates/index.html' Exception Location: /data/data/com.termux/files/usr/lib/python3.8/site-packages/django/template/loaders/filesystem.py in get_contents, line 23 Python Executable: /data/data/com.termux/files/usr/bin/python Python Version: 3.8.0 Python Path: ['/data/data/com.termux/files/home/sacs', '/data/data/com.termux/files/usr/lib/python38.zip', '/data/data/com.termux/files/usr/lib/python3.8', '/data/data/com.termux/files/usr/lib/python3.8/lib-dynload', '/data/data/com.termux/files/usr/lib/python3.8/site-packages'] Server time: Sun, 15 Dec 2019 06:44:37 +0000
Sacs
Who can help me out
Sacs
Am trying to load my home page But its saying permission denied
Eric
But you can see the error in the Traceback: the process running Django doesn't have permission to access that template file. Look into which user owns the directory that contains that template as well as which user is running the Django process
Sacs
I.e the dpaste
Eric
https://gist.github.com and https://dpaste.org/
Sacs
I.e the termix owns it
Eric
I.e the termix owns it
It is a permission issues, make sure the user has permissions to access that directory, and the files inside the directory. Because right now Django is telling you that it doesn't have permissions
Eric
Hello, a question on DRF. Tell me, how to edit an existing entity and create a new one within one transaction?
Take the instance of the entity, and do entity_instance.pk = None and then edit whichever attributes of the new instance that you want to change and do entity_instance.save()
Bunty chhatri wala..
How to create a view that shows user specific data.. Means a todo app which have login system.. And User1 has posted his todo And User2 has posted something Then whatever they have posted must be shown to them.. not everyone on the website..