Nematullah
not on localhost
Gil
https://en.m.wikipedia.org/wiki/KOI8-R ?
Nematullah
I used utf-8 it works good on localhost but on server the occur this error =>'latin-1' codec can't encode characters in position 61-72: ordinal not in range(256)
Gil
Ok well, initial upload, from client, utf-8 ?
Nematullah
Yes utf-8
Gil
OK, from django you need to create a function into view that transforms IN-filename(utf-8)—->out filename(russiancode) After it, its about python/ system basics. You only need to save the filename in correct Here there's interesting info https://stackoverflow.com/a/35138262 But from here,this is out of Django, its about python and filesystem, saving filename
Nematullah
Thank so much Mr @GilObradors
Bral Bral
From Q documentation: Poll.objects.get( Q(question__startswith='Who'), Q(pub_date=date(2005, 5, 2)) | Q(pub_date=date(2005, 5, 6)) ) roughly translates into the SQL: SELECT * from polls WHERE question LIKE 'Who%' AND (pub_date = '2005-05-02' OR pub_date = '2005-05-06') But if i have relations , it will translated into INNER JOIN , and at the end will common WHERE clause. How i can put param into INNER JOIN ON param1=param2?
Raffaele
ALLOWED_HOSTS = ['.herokuapp.com'] i have this in settings.py of my django app on heroku
Raffaele
but i Have server error 500
Anonymous
try to add , after domain name
Anonymous
or take back dot before domain name, or both of this options
Raffaele
but idk How connect to the server to create new superuser
Raffaele
When I try heroku run.... it shows me an error
cj
but idk How connect to the server to create new superuser
I don't use Heroku, but maybe there's some option to access via SSH? 🤷🏻‍♂️ or maybe you can use a fixture with the superuser credentials and load it 🤷🏻‍♂️
Raffaele
but it shows me an error
Raffaele
About migrate
Raffaele
But when I do the migrations it shows me another error
Modou-dev
How did you do the migrations ?
Raffaele
How did you do the migrations ?
The problem is the migrate is Like not working
Raffaele
It works at the moment
Raffaele
But at the next command it doesnt
Modou-dev
But at the next command it doesnt
The next command ? Be more clear please
Bunty chhatri wala..
But at the next command it doesnt
Try this ALLOWED_HOSTS = ['*']
Unknown
Hi guys I am trying to download multiple gif files using giphy api.This api returns url along with width and height of gif files.Now as I am new to django I want to know that should I use async to download these gifs?I am new to django so I please give some suggestions.Thanks in advance.
N
Hi I'm new to django Which course should I purchase to go from beginer to advanced??
Dennoh
Huh
shekhar
if am facing issue bool object is not retunable? how do i solve this?
Anonymous
Raffaele
@c0x6A look that
Raffaele
https://privatebin.net/?75c07d8d960db49f#GfJQvFfTwR6n9dzA3msaH2ibR9cauaWpkFEgdMefhKo2
shekhar
May be you can convert to string to return
can you tell me how do i do that?
shekhar
should i send you the code?
Anonymous
... return str(bool_val)
coderss
I don't know y ...in nested_admin The packages lyk NestedTabularInline, NestedstackedInline.. Etc is not recognised .. nd the error thrown is not referenced in init.py
coderss
How to resolve
Sameeran
Hey people, I've been working on a Django Rest Framework boilerplate for some time now. It basically handles things like authentication, email configuration, setting up of the abstract user, heroku configuration and more out of the box. I would really appreciate some feedback on the same. https://github.com/Caronex-Labs/DRF-Boilerplate
Raffaele
i have a problem with heroku django
Raffaele
i have an error message Bad Request (400)
Tushar
how to add custom templates in admin panel after login
Mostafa
Is this a question or what ?
Mostafa
It seems like a Project tho 😂
Rangarajan
Search through YouTube
Doragonsureiyā
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
coderss
Anyone
Stephen
Guys help me solve this
Stephen
https://pastebin.com/idqugvAt
Stephen
error: django 3
Stephen
more clear image https://prnt.sc/t3bmwd
G
Stephen check the function name, is it book-details?? If that's correct can you please tell from where you're calling reverse??
inchidi
https://pastebin.com/idqugvAt
would be better if you share your urls.py also
Stephen
urls.py >> https://prnt.sc/t3bu1j
Stephen
views.py >> https://prnt.sc/t3buf2
Stephen
template for book List view >> https://prnt.sc/t3bupq
inchidi
urls.py >> https://prnt.sc/t3bu1j
you only have url named books there, meanwhile according to the error message, you are reversing book-detail
.
Hello guys i need help in deploying django project and php project on same droplet digital ocean
Professor
hello can anyone solve my query how to pass a parameter to class based views
Professor
Via kwargs
this is my code "https://dpaste.org/diPs" .... actually I'm working on api
Mayank
Any one help to me??? , in shopping cart project using javascript
Doragonsureiyā
Any one help to me??? , in shopping cart project using javascript
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
Doragonsureiyā
Hello guys i need help in deploying django project and php project on same droplet digital ocean
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With a very high amount of people here the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
inchidi
hello can anyone solve my query how to pass a parameter to class based views
where this parameter value come from? whats your use case?
Professor
where this parameter value come from? whats your use case?
this is my code "https://dpaste.org/diPs"
Professor
this is my code "https://dpaste.org/diPs"
that TICKER='TECHM' is hard coded that I want to pass through url
Professor
where this parameter value come from? whats your use case?
like this: http://127.0.0.1:8000/charts/SBIN
Shihasz
Professor
not getting
Professor
like that
Shihasz
If u are doing as django says.. then u will get it for sure