Somesh
venv\Scripts\activate
Is ur env activate?
H
no no i diddd but i thought that app should be inside project
Somesh
If ur in windows run dir check if u can see manage.py file?
H
ok
H
Directory of C:\Users\havab\OneDrive\Desktop\ecomm 11/19/2022 09:58 PM <DIR> . 11/19/2022 09:58 PM <DIR> .. 11/19/2022 09:58 PM <DIR> app1 11/19/2022 09:27 PM 0 db.sqlite3 11/19/2022 09:27 PM <DIR> ec 11/19/2022 09:25 PM 680 manage.py 11/19/2022 09:15 PM <DIR> venv 2 File(s) 680 bytes 5 Dir(s) 154,419,806,208 bytes free
H
so ?
Y
Please I need some help. I want to deploy my app in pythonanywhere. So in the web part where I must define source code path. if I insert path here, I get this error: This directory does not exist.
Y
Sorry
Somesh
Why pythonanywhere?
Y
Why pythonanywhere?
I need feed sever to deploy my project, because that's test
Y
Try to deploy in railway or heroku.
Please railway has free version ?
Somesh
Please railway has free version ?
Yes.. you can use it for free but there is some limitations..
Dragon
Anyone help me to fix this error pymysql.err.DataError: (1366, "Incorrect string value: '\\x89PNG\\x0D\\x0A...' for column 'TempVsDate' at row 1") I am trying to store the image by python code in the database and getting the above error I also search on google and make changes in my settings.py but still getting the error setting.py changes 'OPTIONS':{'charset':'utf8mb4',} My model.py contain a class with the variable TempVsDate = models.ImageField(upload_to="weather/images", default="Sorry Image Is Unabailabe") The server is running perfectly when i run it but the python code by which i am tring to store the image in database giving me error i changed the image into binary and then passing the image to the database but this error is occurring pymysql.err.DataError: (1366, "Incorrect string value: '\\x89PNG\\x0D\\x0A...' for column 'TempVsDate' at row 1") Anyone please tell me how to fix this error and what i am doing wrong
Doragonsureiyā
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Лайм
Thanx
farzad
hi, anyone have experience with django-mailbox ? i have issue with uri in create mailboxes in admin the yandex email is not work by exampel Example: imap+ssl://myusername:mypassword@someserver My: pop3+ssl://f.hamidi:pass-pass-pass@companyname.org error: [Errno -3] Temporary failure in name resolution
Favas
Any idea about Tabular inline filtering?
fidha
How to activate virtual environment
Sagar
source <virtualenv_name>/bin/activate
talha
I want to redirect all paths (that does not exist) to -> custom page can someone point me where should I look in the documentation
Maxim
I want to redirect all paths (that does not exist) to -> custom page can someone point me where should I look in the documentation
this is a bad idea from an SEO point of view It also seems like an XY problem and it's better to do it with a web server rather than Django
Maxim
would it be okay to change default not found page in apache?
you can make a custom 404 page with Django
talha
you can make a custom 404 page with Django
thank you, I didn't know that will look into it, I thought I had to redirect all unfound urls to custom page(dunno why I thought this way)
Alex
What is the best way to avoid migration errors? Or solve if occured?
Maxim
What is the best way to avoid migration errors? Or solve if occured?
do things the right way there are no less general answers to this all too common question
Jerome
would it be okay to change default not found page in apache?
What you can do in Apache, on server, do it instead of Django
Amit Singh
Does anyone can help me to provide tutorials of django?
Jerome
Does anyone can help me to provide tutorials of django?
there are tons... Here a start Those from W Vincent https://learndjango.com/ Mozilla tuto Mozilla developer.mozilla.org/en-US/docs/Learn/Server-side/Django
Delnold
I have a question related to Cross-Origin Resource Sharing (Django settings) I configured CORS on a Django backend, using "django-cors-headers". I made an API request using fetch() from React.JS application, and it works totally fine on localhost. Whenever I try to access website using Android device on the same network I get CORS error, even though I set up ALLOWED_ORIGINS_ALL = True.
Delnold
I am using the local environment. localhost:3000 - ReactJS localhost:8000 - Django I am accessing it from my network IP which is provided by React, but the problem shouldn't have occurred as I am allowed to access the REST API from any IP address in CORS settings.
Delnold
It's the right settings, I am using CORS_ALLOW_ALL_ORIGINS = True, which is also right, but that doesn't work.
Delnold
As I checked, I am from the same network and the exception it gives: net::ERR_CONNECTION_REFUSED
Delnold
Ok, I will try ty!
Binary
Hey anyone know how can I get all foreign key values in a django rest framework view
Binary
Suppose if a serializer is model serializer and that models needs forign key of other model I want that all id in get or options request how can I do so
Eslam
how can i do like that {% for i in lecture.quiz.all + lecture.section.all %} i have tow list and one teble
Delnold
As I checked, I am from the same network and the exception it gives: net::ERR_CONNECTION_REFUSED
The solution for that was running Django on public IP, and providing that IP in fetch () in ReactJS.
.
how can i do like that {% for i in lecture.quiz.all + lecture.section.all %} i have tow list and one teble
I suppose you want to loop through the contents of both querysets. You can zip them together in views, and loop through the combination in the templates. This and a couple of variations with other answers: https://stackoverflow.com/a/4238261
Eli
Hi,I have a django project with sql server database,and now I want to deploy it in windows 10 IIS, I install fastcgi and set another setting witch is in toturial sites,please help me. Thanks
R
How to popup a message for few seconds only in django? I have sent a message from the backend and then displayed it in the frontend but the message keeps displaying...I want it just for few seconds...any solution?
Aslbek
#question do you know any api which do convert from latin to cyrlic
Doragonsureiyā
#question do you know any api which do convert from latin to cyrlic
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Goorhatar
!ol
Doragonsureiyā
Python groups in other languages (‼️ Not managed by us ‼️) Amharic @python_amharic Arabic @arabipython Azerbaijani @azepug Chinese @pythonzh French @python_francais German @pythonde Hebrew @pythonisrael Hindi @pyhindi Tamil @pythontamilcommunity Indonesian @pythonid Italian @python_ita @pythonita Kazakh @python_kz Malaysia @pythonmalaysia Persian @pyfarsi Portuguese @pythonbr Russian @ru_python_beginners @ru_python @python_scripts Spanish @PythonEsp Swahili @python_eafrica Turkish @python_tr Uzbek @python_uz If you have an (active) group you want to add, ask in the meta group, link in the rules page.
adilet
How worked with vcf format?
Somesh
Guys any one facing problem in atom editor?
Nelson
Can anyone help me??
Nelson
I have 2 models, i already returned a iterable list { for c in cliente } {{nome}} { end for }
Nelson
now i want to get a length of 'contrato'(other model related by cliente.id) in this table
Nelson
https://gist.github.com/nelsondemenezesn/b89fd6160341f676b4d87b763638d448
Bala
Hello all, Hope you guys are doing good. We're developing a django project and hosted in GCP, we often receive mail alerts that django using 80% of memory frequently, I'm really worried on how to debug on this part. Is that anyone who suggest me the various ways of profiling in django? So that I've to really debugging on that part.
Mahkam
Hello everyone, does anyone have any information on how to stream real time from the phone's camera to another?
Yann
Hi! I'm wondering if there is a way to send message to front end from a websocket client , in django channels consumer. I have created a consumer which I call from javascript. In this consumer I created a websocket client (websocketApp) and a thread in which it runs forever In that client I implemented a __on_message event from which I want to send a message back to javascript with self.send. But there is no event.data in my javascript code when I send data with self.send in my consumer. Could anyone help me if he has enough experiency in websocket django channels ? Thanks
i hate milk
hello. i have a slow query: https://pastebin.com/KMvvTR2K i wanna make one subquery instead of three (2, 9, 13 lines). any ideas?
Dhruv
hello i needed to use "and" "or" operations in query search [example: Water and Treatment,this returns all the queries which have water and treatmenyt"
.
hello i needed to use "and" "or" operations in query search [example: Water and Treatment,this returns all the queries which have water and treatmenyt"
You can use complex lookups with q objects. Look further in this section, there are examples using or and and operations. https://docs.djangoproject.com/en/4.1/topics/db/queries/#complex-lookups-with-q-objects
GC Nikhil
Hello everyone I just finished my phyton program what should I do Develop project's Or Learn dajngo
Stanislav
Hi everyone! When I must use just custom simple_tag and when I need use template.Node render? Which way is better? I talk about this: https://docs.djangoproject.com/en/4.1/howto/custom-template-tags/#a-quick-overview
𝚁𝚄𝚇𝚂𝙷𝙾𝙳BEK|(🎄)ᵀᴹ
zip
Mohamad
Hello friends . When I convert a user to staff status, he can convert himself to a super user or delete a super user. How can I prevent this?
Mr Moha
hello everybody wish u good , i want to start my backend journey after long front end journey , im exploring backend framework i should trust to my whole career , my goal for backend is to build content management websites and quickly add features easily when ever i need , so would you recommend django as my go to framework or not ?
Mr Moha
Yep
have you built cms website with it and how was you experience with it ?
....
Anyone here worked with SAML SSO implementation in django?
Doragonsureiyā
Anyone here worked with SAML SSO implementation in django?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions