Someone
How can I implement this?
Someone
Agent Q
K
Jose Javier
Hi every one. I’m studying django channels for the first time. I have a question
How can I transform this in to Class-based Views
from django.shortcuts import render
def room(request, room_name):
return render(request, 'chat/room.html', {
'room_name': room_name
})
Irrfan
Hi guys
A quick question....
Is it safe to save sensitive data in session?!
Doragonsureiyā
Irrfan
No
So what should I use to store temp data?!
For example store verification code that send to user....
Ghorz
Hi every one. I’m studying django channels for the first time. I have a question
How can I transform this in to Class-based Views
from django.shortcuts import render
class Room(View):
def get(request, room_name):
return render(request, 'chat/room.html', {
'room_name': room_name
})
H
Exception ignored in thread started by: <function check_errors.<locals>.wrapper at 0x7f8dafb05ca0>
MigrationExecutor(connections[DEFAULT_DB_ALIAS])
File "/home/django/cms2021/cms/django/db/migrations/executor.py", line 18, in init
self.loader = MigrationLoader(self.connection)
File "/home/django/cms2021/cms/django/db/migrations/loader.py", line 49, in init
self.build_graph()
File "/home/django/cms2021/cms/django/db/migrations/loader.py", line 200, in build_graph
self.load_disk()
File "/home/django/cms2021/cms/django/db/migrations/loader.py", line 99, in load_disk
directory = os.path.dirname(module.__file__)
File "/usr/lib/python3.8/posixpath.py", line 152, in dirname
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
can anyone help me with this error
using ubuntu 20
H
Exception ignored in thread started by: <function check_errors.<locals>.wrapper at 0x7f8dafb05ca0>
MigrationExecutor(connections[DEFAULT_DB_ALIAS])
File "/home/django/cms2021/cms/django/db/migrations/executor.py", line 18, in init
self.loader = MigrationLoader(self.connection)
File "/home/django/cms2021/cms/django/db/migrations/loader.py", line 49, in init
self.build_graph()
File "/home/django/cms2021/cms/django/db/migrations/loader.py", line 200, in build_graph
self.load_disk()
File "/home/django/cms2021/cms/django/db/migrations/loader.py", line 99, in load_disk
directory = os.path.dirname(module.__file__)
File "/usr/lib/python3.8/posixpath.py", line 152, in dirname
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
can anyone help me with this error
using ubuntu 20
actually getting p=None in posixpath.py
please help
Anonymous
How do I build the following? https://stackoverflow.com/questions/66377727/how-do-i-group-results-based-on-categories/66378257
Hitesh
Anyone integrated celery with django?
Hitesh
Want to know if I can use postgre as a broker for the celery in latest version or not
Dharmil
I created a customer model and give one to one field to User table now my register form data are store in User model so how can i give reference key to my customer model...
Hossein
How do i can enter Farsi numbers into integer field??
Anonymous
I did once
Meraj
hello how to get last item in views {{there is not iterable error}}
Mirco
Meraj
Meraj
such az an blog
Meraj
e.g last blog
Mirco
of an model
YourModel.objects.order_by('-id').first()
Meraj
Doragonsureiyā
❎ Mirco pardoned mrj [586430089] for
3/3: writing in PM is not admitted
Angel
Hello guys.
Angel
I want to try to update urlconf in django 3. Because i make dynamic the urls.
Angel
i mean , based on database data i create some links iun urls.py
𒂵𒐊𒍝𒊏
Does django support mathematical operations and how is it done?
Mirco
𒂵𒐊𒍝𒊏
Mirco
𒂵𒐊𒍝𒊏
Explain better
For example, I have data in the database and I want to do math operations on it, can I get that?
𒂵𒐊𒍝𒊏
𒂵𒐊𒍝𒊏
𒂵𒐊𒍝𒊏
Anonymous
https://stackoverflow.com/questions/66393070/django-rest-framework-group-data-by-its-parent-tag
𒂵𒐊𒍝𒊏
Mirco
Dmitry
Hello. How can i flush database programmatically, e.g. not from CLI, django-admin etc?
Angel
Some way to reload url_conf in django 3?
Alexey
what are the advantages to use django with redis and postgresql in production?
Pignata
Hi everyone. I'm new with Django and having some trouble with models and PostgreSQL data types, in my database I have a field of a composed data type, that need to be mapped to varchar, but to do this, my model need add a cast function in this field. Ex: the query "select field from test_table", need to be "select field::varchar from test_table" or "select cast(field as varchar) from test_table".
Ps: this explicit type cast need to work with insert and update commands too
Anyone has a hint, how I could but this explicit cast into a Django model?
Thanks!!!
Pignata
Thanks to all, i think that https://docs.djangoproject.com/en/3.1/howto/custom-model-fields/ it what I need :D
G
How to write this query in django.:
select col1, col2, col3, col4, col5 where col2=xval group by col5
Problem: to do 'group by' we use .values(col5) but this results in selecting only col5 in output . I need all columns in output.
Doing values(col1, col2...col5) selects all columns but results in 'group by' on all columns.
Thank You
Hi
Hi All,
I am new to django and trying to use login using authenticate method in one of my view function login
My model contains user_name, user_email, password.
When i try to pass user_email and password in authenticate, it returns None. Using postman to hit thr function.
My register function works perfectly and i can see my user details in sqllite.
For authenticate, is it mandatory to use username as parameter?
Thanks in advance
Tukhtamurod
Anonymous
I see
Anonymous
Guys how to do the abstractuser authentication? For serializer
Anonymous
Jack
Can someone help to create a POST request function for a model which is having a foreign key of another model in rest_framework?
Anonymous
Free hosting of Django with database Post PostgreSQL?
Anonymous
faran
Anonymous
Heroku
Tomorrow I try, I can ask you for help? (I'm new in this)
faran
Jack
Anonymous
Anyone can help me in crypto merchant
Mirco
Doragonsureiyā
Anyone can help me in crypto merchant
Don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello, I need help on $z"
Just ask about your problem directly! With ~90,000 people here, the probability that someone will help is pretty high.
How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
Anonymous
Oky
Anonymous
Can anyone suggest a basic project in big data?
Neymar
Can anyone suggest a basic project in web development?
Anonymous
Gabriel
Avi
Hello,
I'm trying to deploy django application to AWS elastic beanstalk , followed every step from documentation.
Yet , this error occurs ,
Path to wsgi file is incorrect.
I opened (eb config) and changed wsgi path there , from application.py to mysite/wsgi.py
Still error occurs .
Can anyone help , please.
Mirco
!meta
Doragonsureiyā
Don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello, I need help on $z"
Just ask about your problem directly! With ~90,000 people here, the probability that someone will help is pretty high.
How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
NOOR UL AIN
Help me out with NLP related topics? Suggest me some NLP related papers! I'm beginner
noob
django session loss after payment
noob
how to get/retireve session after payment