Igor'
How Can I decode my image in base64 from <img src="{{ i.image.read }}"> in Jinja2?
Ajit
Gud morning everyone I'm website development So i have Django project with use sqlight3 database So i deploy my project, in so how can i hosting to live server if any idea guidance
Saddam
Can anyone suggest me how to compare user entered date time with Current date time?
Дмитрий Борисов
Django.utils.timezone.now
Nivas
How to configure django in xampp,
pankaj
Hi all is it possible to display a nested serializer data in response for read only in reverse table without define a FK.
Dj - 505
Hi .. For my project of Fullstack , it is Blog project Backend is DRF and i have get all backend blog datas by using Axios and using Vue as frontend . In Vue with django, when add new post , How i insert list of all categories inside category field? I have get : response.data.category from Django API by Axios , and how the user can select only one category from this list API categories ? and how i select request.user to get post author? I dont find youtube tutorials explain all these ? How can i do this ?
Poppu
sudo vim /etc/nginx/sites-available/stream-backend server { listen 80; server_name www.example.in; location = /favicon.ico { access_log off; log_not_found off; } location /static/ { root /home/prashant/projects/stream/stream-backend; } location / { include proxy_params; proxy_pass http://unix:/run/gunicorn.sock; } } i need to server my django site on digital ocean but for now i doesn't have any domain so what show i do is that above config is ok or i used host id instent of www.exampe.com
Poppu
gunicorn --bind 0.0.0.0:8000 backend.wsgi but when i used this command its work fine
Jerome
DisallowedHost at / Invalid HTTP_HOST header: 'www.example.com'. You may need to add 'www.example.com' to ALLOWED_HOSTS. Request Method: GET
You should keep both. in Django ".example.com" & from your provider, in DNS settings , you enter a CNAME for the www to the root domain.
Дмитрий Борисов
proxy_pass http://unix:/run/gunicorn.sock; this is unix socket - but you bind gunicorn to tcp/ip socket
Jo
https://www.digitalocean.com/community/questions/help-setting-up-djanjo-supervisor-nginx Please check this one
Mousiol
Hi I've added a new user from django admin panel but I can't login with it. Django admin panel gives me "username or password incorrect" error with correct username and password.
Suraj
Urgent help needed _ did mistake in migration then deleted but unable to create a new one however I can the folder
Jerome
Urgent help needed _ did mistake in migration then deleted but unable to create a new one however I can the folder
delate all migrations folders, keep init files, delete sqlite. recreate super user. then migrate then makemigrations appname (for each app)
Suraj
There is a init file inside migration file as well
Jerome
There is a init file inside migration file as well
get rid of the "migrations folders",
Suraj
Yes....and one only one SQL file is there that is "db.sqlite3" should I delete that?
Jerome
delete sqlite, stop then restart the server, you should get the migrations message "18 migrations.." or so. Migrate. then superuser then makemigrations appname
Jerome
you need to recover the initial state
Suraj
Doing
Jerome
you may also get rid of your venv if virt python is corrupted
Jerome
usually, just a safe clean of db & migrations do the job
Suraj
Unable to create a new super user
Jerome
what you got?
Suraj
I'm so tensed now
Suraj
Multiple lines of error
Jerome
no, keep it fine.
Suraj
And then ...no such table_ auth user
Jerome
this is better, you need to be at state 0 . is your app in a virtual env?
Suraj
No
Jerome
you should, it's 2 lines of code to get each project encapsulated & independant. You pip anytime you need? how many libraries you got?
Jerome
"pip list" (in a terminal)
Jerome
or pip3 list sry
Doragonsureiyā
🚫 ‎Drnk [5168522781] is already banned.
Никита
Hello, who have worked Django projects with 2Checkout gateway? Can we talk about integration? I have couple questions about it. Thanks!
uzumaki Naruto
I got error since last 3 days
uzumaki Naruto
About django is not recognised as the name of cdlet ,functions,script file or operable programm .check the spelling of the name or if path was included ,verify that the path is correct and try again
Narayan
How can I integrate own html template in django please help
Demõn Sláyer
hey guys ...
Demõn Sláyer
i need some help regarding datatables...
Demõn Sláyer
anyone's up there?
Doragonsureiyā
i need some help regarding datatables...
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Demõn Sláyer
can msg again...can't mention you...
Demõn Sláyer
btw the issue is -
Demõn Sláyer
i have get data through api using ajax and showed on html page in tabular form
Demõn Sláyer
now i want to use datatables plugin there so i can use searching and some features of datatable...
Demõn Sláyer
so i used it so now when i tried to use that searching feature...data in table automatically disappeared and like table gets empty...
Demõn Sláyer
So your issue is completely unrelated to Django is more about JavaScript?
maybe but as programmer please help..me like i literaaly i searched for eveything..but dk where am i going wrong...
Charly
maybe but as programmer please help..me like i literaaly i searched for eveything..but dk where am i going wrong...
Impossible to help with that info you gave, and if is JavaScript we can't help you here
Demõn Sláyer
btw if you know about any group regarding that...can you tell me
Demõn Sláyer
Do you?
yess😅
Demõn Sláyer
its kinda something...i cant able to use datatable on html page
Charly
Then do not insist, we don't allow talking about other thing but Django
Md.Shahid
I have 10 task Like as task1=(senior:8hr,junior=14hr) and so on upto 10 .some of them task are critical which we cannot assign to junior I.e junior:0hr. I want to check ratio 10 that means 10% task will be done by senior and rest of them.similarly for 20 30 and 40.
Md.Shahid
I m facing one problem here how can I distribute task to get expected ratio.
Rafaela
does anyone know how to make a private chat using django?
Andrej
Hello guys, I've implemented a project with Django. It took me a couple months in full-time and I've learnt a lot about Django. The project was more for self education and I don't know if someone could need that. I'm also thinking about putting it online as open source. I would really appreciate your feedback and what you would do with the project. https://www.sms-api-gateway.com/
Stephen
Hello Guys, I have just created an environment using Conda but trying to create a project I get this error https://prnt.sc/Pl9FRAIHw05y (AttributeError: 'module' object has no attribute 'lru_cache') , I have checked on stackoverflow but I havent found a solution ... Kindly help
Suraj
What should be the address of our app if we want 2 of my friends to access and submit the form that i created? Do i need to do change in settings? Easiest way please
Cabrel Tchomte
Is it possible to create a Database from form in Django and define the user who has created this DB as a admin ??