Ghorz
I m getting the error maximum recursion depth exceeded while calling a python object ,while running python manage.py runserver command can anyone pls help me?
Youre probably making round function call or import statements. Pastebin your views.py, models.py, forms.py
Anonymous
is a good practice to have an drf-api as a project app, or is it better to be a stand-alone project?
Ujjwal
Someone plz guide me I am a beginner in django . . I have read some topics in docs ..made a Simple todo app where u can create and delete todo lists .. Now plz suggest a roadmap to continue further ...I mean which project to make or now what to do ..what to learn ..I mean there is so much in docs ..I get overwhelmed ..if anyone cud suggest me something which give me a direction in django ..it wud be very helpful ...u can dm me too ..I wud be very thankful to u ...as far as frontend in concerned I know html css bootstrap and some js .. I am in second year .. I am a sport competitive programmer ..Now getting some hands dirty in web dev in python .. Thanks Forgive me if I have asked a stupid question ..I am new to development
Anonymous
project app
👍🏻👍🏻👍🏻
Mahesh
I want to create a platform for video conference using Django So please suggest me what can i do first
Andrej
Someone plz guide me I am a beginner in django . . I have read some topics in docs ..made a Simple todo app where u can create and delete todo lists .. Now plz suggest a roadmap to continue further ...I mean which project to make or now what to do ..what to learn ..I mean there is so much in docs ..I get overwhelmed ..if anyone cud suggest me something which give me a direction in django ..it wud be very helpful ...u can dm me too ..I wud be very thankful to u ...as far as frontend in concerned I know html css bootstrap and some js .. I am in second year .. I am a sport competitive programmer ..Now getting some hands dirty in web dev in python .. Thanks Forgive me if I have asked a stupid question ..I am new to development
Choose a problem which you could try to solve with a website. Solve the problem with Django. It could be something simple. You will learn a lot during this process. Sometimes people underestimate how much work it is to release a good web project. When I started to learn Django I created a platform through which people can connect their Smartphone to a Rest-Api and sent sms via the api through their smartphone. https://www.sms-api-gateway.com In this Project I had to touch 80% off all the Django functionalities. Like a custom User object, migrations, sending e-mails, logging warnings and errors, writing plugins, using third party plugins, fixing bugs in third party libraries, writing monkey patches, customizing different aspects in Django, using the template engine, improving the performance, using celery, customizing the Admin UI, using Ajax, integrating authentication methods and much much more. The most fun part was customizing Django Oscar. It took me many months to go through all of this, but it was worth it. I feel comfortable to implement the next projects. I like the process to learn some useful new skills and to the the progress how something arises.
Andrej
I want to create a platform for video conference using Django So please suggest me what can i do first
For Video conference, you should have a look on WebRTC Web Real Time Communications You should understand how it works in theory and then implement a simple version of it for a one to one video conference. Extend it for a group conference. And then build a beautiful platform around that core.
Hari
https://youtu.be/S_Y1i1meCyw
Anonymous
how to search in django like multi query like if user type some text and select dropdown and other dropdown how to make fetch from db
Anonymous
i use query=post.objects.filter(title__icontains)
Anonymous
for single search
Mirco
Just use an OR and you can search on multiple fields ( not the best way but it works )
Anonymous
how
Anonymous
like (title__icontains or content__icontains)
Mirco
how
Go into documentation and look for using Q class into queries
Mirco
! search
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
Mirco
It's enough to type django orm or
Mr
I have error when i install postgresSQL
Mr
COMSPEC does not seem to point cmd.exe
Mr
How to solve this problem please help me
Jay
Has anyone successfully implemented jwt with django for websites using jQuery? Because I am scared that the implementation I have in my mind is prone to security breaches
Andrej
Has anyone successfully implemented jwt with django for websites using jQuery? Because I am scared that the implementation I have in my mind is prone to security breaches
I successfully used rest_framework_jwt.authentication.JSONWebTokenAuthentication. But it is two years ago and this packages is not maintained anymore. I saw in the Django docs that you can use this plugin: django-rest-framework-simplejwt
Harshit
https://youtu.be/YiX1wIzIt4g
Harshit
Must watch 👆
OneZer0
Hello, does anyone have any example of how I can upload multiple files to the database?
OneZer0
Pure Django o DRF
can be with DRF, if it is simpler
Omar
can be with DRF, if it is simpler
Use FormParser and MultipartParser, your files will be on request.data as InMemoryUploadFile
OneZer0
is it using ajax?
Omar
Yeap, you can use FormData on frontend site
Omar
If JQuery, you must set processData to false and contentType to multipart/form-data
Andrej
Hello, does anyone have any example of how I can upload multiple files to the database?
You should use a storage engine to save files and save the reference or the path of the file inside the Database. In general it is not a good idea to save whole files inside a database.
OneZer0
Yeap, you can use FormData on frontend site
i dont need frontend... i just making the backend and i can do it by postman
Holla
I tried to login the admin panel seems iforgeted the username and the password and when i ever try to create new superuser terminal throws un error saying "enexpected keyword argument 'force_insert'c
OneZer0
i dont need frontend... i just making the backend and i can do it by postman
I am receiving the request, but when i try do it `UploadFileAnalisador(docfile = request.FILES['docfile'])`, i am receiving `django.utils.datastructures.MultiValueDictKeyError: 'docfile'`
Maz
I have a bunch of records fetched from mysql using joins. I want to store this data in a redis cache. Which is the most efficient way to do this?
Ghorz
https://youtu.be/YiX1wIzIt4g
What has this to do with Django
Omar
Try to use get method of dictionary
Omar
Also check you are signing with multipart/form-data the form on the template
imacat
Hi. I wonder if there is any way I can make the trans and blocktrans to return strings as unsafe? I do not want the translators to worry about the HTML characters.
Knight
query = f'INSERT INTO collector_population (collector_mac, count, published_at, updated_at, counted_at) VALUES (%s, {count}, now(), now(), {counted_at}) on duplicate key update count = values(count), updated_at=now(), counted_at = values(counted_at)' cursor.execute(query, (collector_mac,))
Knight
Do yo uguys see any syntax error?
Ghorz
Do yo uguys see any syntax error?
You're using single quotes outside
Knight
You're using single quotes outside
Thanks for the reply. Im trying it now!
Ghorz
Thanks for the reply. Im trying it now!
If you get error at %s, use %%s
Knight
[ERROR] ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '11:39) on duplicate key update count = values(count), updated_at=now(), counted_' at line 1")
Ghorz
Show your code with pastebin
Knight
sorry, but Im not sure of how to show my code whith pastebin. Do you mind if I send it in person?
Nikolay
Knight
Show your code with pastebin
https://pastebin.com/paj4vsu9
Pankaj
Guys Anybody Has Django Crud Operation Code??
Pankaj
Yes
Ninja
Guys Anybody Has Django Crud Operation Code??
Type in google u will get the code
Anuj
Anyone help me how to design a Database schema
Sooraj
What is correct file permissions for .py files?
Dim
The help of experts in optimisation of script AES128 under a python 1.5.2 for GL868 Dual Telit is necessary Written on python AES128 works very slowly on GL868!
Pradeep
Guys help me in creating a django models n views...like student have to give his details...and that should go to the staff profile...if the staff reject that student have to get notified..and if the staff approved it ...it should go to the hod profile ...if the hod approved it also get notified by the student...kindly help me
Dim
Colleagues, somebody can is familiar with programmers from Telit? Or who knows realised the interpreter a python 1.5.2 on their modules GL868 Dual?
Pradeep
Guys help me in creating a django models n views...like student have to give his details...and that should go to the staff profile...if the staff reject that student have to get notified..and if the staff approved it ...it should go to the hod profile ...if the hod approved it also get notified by the student...kindly help me
blessing
i can help
blessing
anyone willing to collaborate with me on a django project
blessing
What’s the project on??
its an asset management system
blessing
no brainer at all
Emeafu
its an asset management system
Great, come to private chat