Dagi
Hey guys ,when i try to pass kwargs through get_form_kwargs it keeps raising a KeyError in the form...any ideas...????
Linus
Sorry to bother you i would like to have an information about django channels. I don't find any job offer about it. Is it in demand?
Linus
Ah ok thanks you a lot
Doragonsureiyā
Ah ok thanks you a lot
You're welcome! 😊
Linus
Really kind
sarth
friends how can store email html templates inside the database, and show(preview) user if he wants to edit or update the templates before sending it through email...??????
αтуяα
seeking for help how to insert 3 dataset or 3 categories of value and plot it into graph
LaRiN
Hello to all the members! I'm just starting to learn DJANGO, so I joined this group. I plan to study on my own, so I will sometimes ask questions) Sorry for my English)
Ankiniki
1. Integrate Celery into a Django app and create tasks. 2. Containerize Django, Celery, and Redis with Docker. 3. Run processes in the background with a separate worker process. 4. Save Celery logs to a file. 5. Set up Flower to monitor and administer Celery jobs and workers. 6. Test a Celery task with both unit and integration tests. I am doing above task but getting stuck to compose docker image anyone help me out
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Ankiniki
I have install docker package
Ankiniki
https://www.toptal.com/developers/hastebin/raw/oqeqizaheq
♈
How to generate custom auto generated primary I'd Like order_id = ORN0001, 0RN0002
Python Guy
class CustomUser(AbstractUser): email = models.EmailField(unique=True) #date_of_birth = models.DateField(null=True, blank=True) #gender = models.CharField(max_length=1, choices=GENDER_CHOICES, null=True, blank=True) what's wrong with this table? I am trying to store, username, email, password.
 ‌‌‌‌Hamed
Hi guys how can I manage and run many telegram bots with django ??
Яroslav
Good afternoon, guys, maybe someone knows how to solve this problem ... The bottom line is that I need to authenticate the user (there is no way to register on the site), all user data is stored on the server, when the server (not the database!) the username and password, the answer flies in the form of True or False. I wrote such a pre-default code for authenticating users in django with the necessary additions in the form of the requests library, but during the authentication itself, the user session does not hold, you mean it accepts a True response and lets the user enter the site, but the session itself is not perceived and logs in under the administrator
Яroslav
def loginPage(request): if request.method == 'POST': username = request.POST.get('username') password = request.POST.get('password') url = ("...url.../auth?login=" + username + "&password=" + password) user_request = requests.get(url).json()['authenticated'] user = authenticate(request, username=username, password=password) if user_request: login(request, user) return redirect('url/') return render(request, '12.html')
Яroslav
Or it just gives an error that this is an anonymous user
M?
Hey. what is problem here? class Business(models.Model): name = models.CharField(max_length=50, primary_key=True,unique=True) django.db.utils.OperationalError: foreign key mismatch - "businesses_activebusiness" referencing "businesses_business"
M?
Is this the complete code?
https://dpaste.org/QkdL
M?
i cant see the problem
M?
i want id as string. it is problem?
k9
you can use it if it not created
Python Guy
can u guys explain role of serializer in one line? Analogy will be best
Python Guy
#serializer.is_valid() """ How function knows that data has following characterstics - unique username - unique and valid email - password == confirm password
k9
https://dpaste.org/XZBH its error
there is no error just try migrating again mine worked
k9
yes thx
your welcome
M?
i have new problem 😁 i want to make like this https://dpaste.org/6Qyw
M?
but it is error, how i can do it? i want to get ripening time in api
Rutherford
I am trying to read an uploaded file in chuncks and send it via mail. Printing the results, i see spaces in there. Also the files are sent but then cannot be viewed. data = b'' for i in file.chunks(1024): data += i to_send = EmailMessage(subject, message, mymail, [recipient]) to_send.attach(file.name, data) to_send.send() What am i doing wrong here? How do i read in chunks properly. Thanks.
Ganesh
Hi team am new to django am trying to create the mutiselect with Dependant drop down. While doing form validation its not working.
Ganesh
Am getting select a valid choice . That choice is not one of the available choices.
Python
Hi everybody, I need the suggestion for single sign in django rest framework Guidance
Hasanboy
Hi everyone... in order to start learning django.. what kind of free courses are convenience for me?
Hasanboy
Please help me..
Amin
Hello , please help me I have a bootstrap template and there is a form tag into it , i just want to receive name and phone number of users and save them in my admin panel or DB
Amin
Help me please 😭
cj
Also I want to deploy them in my cPanel
how is that related to Django?
Amin
how is that related to Django?
I want to get phone number and name of my users by Django
LB (Ben)
Hi everyone... in order to start learning django.. what kind of free courses are convenience for me?
Hey. I recommend doing the Django tutorial on the docs site as a basic start. https://docs.djangoproject.com/en/3.2/ See the 'First steps' section. After you have done all the tutorials there you should feel confident enough to search for other, more specific, tutorials for what you want to build.
Amin
To God somebody help me 🤦🏻‍♂
LB (Ben)
Can someone please take a took at this? Stuck on same issue for last 2 days.
Hey. I put a follow-up question on SO (stack overflow).
LB (Ben)
Hello , please help me I have a bootstrap template and there is a form tag into it , i just want to receive name and phone number of users and save them in my admin panel or DB
Hey. It would be great to get more details on what you are trying to do and what code you have already written. For example, have you got to the point where you have a form working at all? And you just need to store the data or are you starting from scratch? https://docs.djangoproject.com/en/3.2/topics/auth/customizing/#extending-the-existing-user-model That page has info about adding fields to the user model.
LB (Ben)
I have written some python codes before and I'm similar with python Even i have worked with opencv and etc. But know i have a html CSS Code ( a bootstrap template , and there is a form tag into it I just need to know how can I store that datas now I must do it quickly
Can you access stack overflow? Also. No need to pay - I'll help if I can but it's hard without knowing what code you have already. If you can access stack overflow, sign up and put the actual code you have so far, in python and in html. https://stackoverflow.com/ If not - try to put it all in Pastebin. --- If you want to just get the data saved and worry about what to do with it later you could just copy / paste parts of this tutorial. https://docs.djangoproject.com/en/3.2/intro/tutorial04/
Mohamad Reza
Or if you have the back-end code (must be django in this group else is offtopic), then send your code to get more good results
Fmsml
Hello everyone, this is my first time asking in stackoverflow, maybe someone can help me or give some suggestions, thankyou :) https://stackoverflow.com/questions/70161050/django-ninja-storing-total-api-request-from-user-limit-and-filter-it
LB (Ben)
Hello everyone, this is my first time asking in stackoverflow, maybe someone can help me or give some suggestions, thankyou :) https://stackoverflow.com/questions/70161050/django-ninja-storing-total-api-request-from-user-limit-and-filter-it
Looks good. I think you can remove the 'this is my first time asking' bit - when answering a question Stack overflow will tell you if it is a first timer. Also - see if there is a Django ninja label you can add. You may struggle getting multiple questions answered but hopefully someone can help point you in the right direction.
LB (Ben)
Hi everyone... in order to start learning django.. what kind of free courses are convenience for me?
This earlier message also has some recommendations https://t.me/django/187110
Njain
Anyone give me djongomanager documentation
Doragonsureiyā
Check out PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.
Njain
Can anyone suggest me django+ mongodb tutorials
Doragonsureiyā
Can anyone suggest me django+ mongodb tutorials
Do you want to use Django with MongoDB? Then you shouldn't Please read this article: https://daniel.feldroy.com/when-to-use-mongodb-with-django.html
Njain
Djongo models ??
Doragonsureiyā
Артем
Hello everybody in module allauth registrarion with fields username, email, password. How to add another fields? for example street, town etc User with AbstractUser.
Артем
help please!!
Артем
You need create your custom user model.
i made it with AbstractUser
Артем
how create form for allauth?? maybe you have an exemple
Prabhakaran
Create a user profile model..