s@123
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?
Mirco
Linus
Ah ok thanks you a lot
Mirco
Linus
Really kind
sarth
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
Rohan
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
Vishal
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"
k9
M?
M?
i cant see the problem
M?
i want id as string. it is problem?
k9
k9
you can use it if it not created
M?
Python Guy
can u guys explain role of serializer in one line? Analogy will be best
M?
Python Guy
#serializer.is_valid()
"""
How function knows that data has following characterstics
- unique username
- unique and valid email
- password == confirm password
M?
k9
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
Amin
Help me please 😭
cj
Amin
To God somebody help me 🤦🏻♂
Hasanboy
LB (Ben)
Amin
Amin
LB (Ben)
Mohamad Reza
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
Fmsml
LB (Ben)
LB (Ben)
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
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!!
Carsalberto
Артем
Артем
how create form for allauth?? maybe you have an exemple
Prabhakaran
Create a user profile model..
Артем