Alireza
Hello, my friends, to a strange problem of mine I have a signal that said if anything is saved in the model, send its ID to the task In the task, you will take that model and I will get it and print it The first time I save something, it prints correctly, but the second time it says that there is no such data in the database!
Habib
Render is good
Mohammad Hossein
I will try Render again. any other service suggestions ?
I know Cyclic and Fly.io but i haven't use them
Vinay
Hello I am facing an issue to save data to the database I have stored data in a variable analyzed_data and when I try to save this data to the table By analyzed_apk = models.AnalyzedAPK(**analyzed_data) try: analyzed_apk.save() except Exception as e: print("Error saving analysed APK data") Can anyone please help what is happening
Vinay
One of your fields is not null=True and you're not passing a value to it
Thank you I solved the problem It is the problem of how I am handling the null value in a table in models.py file
Sam
I want best course for django
Sam
Please
Doragonsureiyā
I want best course for django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Yazdan
Hello bros Can anyone introduce a good course for starring django??
Doragonsureiyā
Hello bros Can anyone introduce a good course for starring django??
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
iyad
How long you toke to learn Django like master?
Sopan
How long you toke to learn Django like master?
Use it as a tool to earn Money.
Charly
Use it as a tool to earn Money.
That wasn't the question
One Piece Is Real
I am trying to build a Django website with admin and other 2 types of users I know to use django built-in auth for one type of user but how to handle the second type?
Lucky
If you want to create a user with same access then try same type how you create super user you also change permission later
levi
Using view classes vs functions? Depends on preference or it actually affects performance somehow?
Mukesh
any Django course here ? please let me know, if someone does. Thank you in advance.
Doragonsureiyā
any Django course here ? please let me know, if someone does. Thank you in advance.
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Charly
Using view classes vs functions? Depends on preference or it actually affects performance somehow?
Is not about performance but having classes allow many things even if these are more complex
Mahi
What type of questions asked interviewer about django
Mahi
I wanna learn django suggest some youtube channels
Charly
What type of questions asked interviewer about django
About your knowledge of Django. So if you just want to learn don't even think about interviewing.
Doragonsureiyā
I wanna learn django suggest some youtube channels
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
ishaan
anyone worked with django ckeditors?
ishaan
Actually I want to add file uploading feature in this and want to upload large sized docs
ishaan
unable to add it
Disami
always confusing where to define a method that make change to the attribute of model ... where should is in serializer class or model class why
Charly
always confusing where to define a method that make change to the attribute of model ... where should is in serializer class or model class why
In the model class is usually better because you can use that logic in many places nit with serializers
Disami
In the model class is usually better because you can use that logic in many places nit with serializers
okay what about which method should be overidded, save or create to modify attribute? what is differnce the create in serializer and the one in model
Poojitha
I was trying to generate otp through email but the access was denied to generate otp...ever I didn't get an email can anyone help me out this???
Doragonsureiyā
Ok I'll show you
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://dpaste.org - https://hastebin.com - https://bin.kv2.dev
Poojitha
ok my bad!
Poojitha
views.py code https://dpaste.org/T0MHO and my emails.py code: https://dpaste.org/zTpTV
kim
I'm working on an authentication system with django all is working but when user tries to create an account I get this error [07/Aug/2024 20:40:26] "GET /register/post?csrfmiddlewaretoken=ZvpJADks83DmRbxlVTefUgrW8DUuto6atXiRlDecIzMCrQduSwNd0hsBGMBL4Gey HTTP/1.1" 404 4050
kim
check url parameters properly make sure /register/post is existing
path('register/', views.register, name='register'), I have it
kim
Use post
Expound please
kim
in the form you are probably missing method="post'
{% extends "base.html" %} {% block title %}Create Your Account {% endblock %} {% block content %} <h1>Create your account</h1> <p>Please sign up here</p> <form action="POST"> {{user_form.as_p}} {% csrf_token %} <p><input type="submit" value="Create My Account"></p> </form> {% endblock %} Here is the form
Habib
in the form not action=post
Habib
Another attribute method="post'
Habib
Also for The action give path to the url your Posting it
Habib
{% extends "base.html" %} {% block title %}Create Your Account {% endblock %} {% block content %}   <h1>Create your account</h1>   <p>Please sign up here</p>   <form action="" method="post">    {% csrf_token %}     {{user_form.as_p}     <p><input type="submit" value="Create My Account"></p>   </form> {% endblock %} Here is the form
kim
First csrftoken then form
I've Changed this
Habib
Good
Saturn
whats is the best lib to implement crypto payments on my django project that comes with sandbox testing
Devendra
how can write custom login singnup in django guide plz
kim
cannot access local variable 'new_user' where it is not associated with a value Any help?
Mirco
cannot access local variable 'new_user' where it is not associated with a value Any help?
assign that variable, spend time on studying Python before Django
Denys
Hiello, I wanted to create a drf project via digitalocean. I get an error: Error while running '$ python manage.py collectstatic --noinput'. See traceback above for details. You may need to update application code to resolve this error. Or, you can disable collectstatic for this application: $ heroku config:set DISABLE_COLLECTSTATIC=1 ERROR: failed to build: exit status 1 When I set DISABLE_COLLECTSTATIC = 1 it works fine, but static is not loaded for /admin.
Devendra
how can write custom login singnup in django guide plz
Durdy
I deployed project to ubuntu server and give me error
Durdy
OperationalError at /account/register/ attempt to write a readonly database
CHANDRU S
I've been working with Django REST Framework and using pytest for testing. To visualize my test cases, I've been generating Allure reports. Is this a common approach, or are there other tools or practices with pytest and Allure that are more commonly recommended or widely used for Django projects?
Nima
ProxyConnectionError at /home/upload_img Failed to connect to proxy URL: "http://127.0.0.1:2334"
Nima
ProxyConnectionError at /home/upload_img Failed to connect to proxy URL: "http://127.0.0.1:2334"
when i want to upload a file in the bucket this error comes up...what is this? what should i do?
Charly
Nima
Show the code because we don't know what proxy are you using
the issue fixed by disabling the proxy usage of computer...
maneliiii
Yes activated environment
dumb question but did you install django and then this command django-admin startproject project_name .
Creator🇺🇦
What are the best libs, frameworks, language to write a front end on Django?