Anvesh
I have a doubt related to database and orm
sample code
a = SampleModel.objects.filter(Id=2)
b = SampleModel.objects.filter(Id=3)
If a and b:
print(true)
a.delete()
b.delete()
Now in above code...how many time is database hit?
Like it will be hit when calling a and b
But will database also be hit on .delete() operations.
Or django has some cache mechanism which caches the queryset results?
Romila
How to create custom health-check for active logins in django
Dhruva
Model class allauth.account.models.EmailAddress doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
Dhruva
NOt able to get error sol
Anonymous
django registraion fields in default is : username, passowrd, passowrdconfirm
when i change this fields to : emaiol, passowrd, passwrodconfirm, doesn't work,
what i should doing?
Batman
hey, has anyone worked with social login using rest-auth, can help me how to create user profile which has onetoone relationship with the user model?
SG
How to connect socket in django with localhost ?
DTN
Hi, I'm looking for some guidance from you guys. I have 3 months to deliver a project that has to do with mentorship scheduling. I have a lot of questions, but first I want to read from you what options recommend for the calendar part. Mentor's days and hours can be changed from the admin área. How I can associate in my model all days and hours that a mentor is avaliable?
Doragonsureiyā
How to connect socket in django with localhost ?
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
Alex
Hi guys. Is it possible to render a DetailView on modal template. I've seen some tutorials but they are rendering just CreateViews using Ajax, I tried to make some changes and see if it works on DetailView but no successed, If someone knows how to, pleasa share a hint. Cheers
SG
SG
What you think i didn't try this before i ask this
cj
Anonymous
Anonymous
i have this
class Footer1(models.Model):
short_desc = models.TextField(max_length=300)
service_1 = models.CharField(max_length=150)
service_2 = models.CharField(max_length=150)
class Meta:
verbose_name = 'footer'
verbose_name_plural = 'footers'
def str(self):
return self.Footer_name
Anonymous
and now i want to add this inside of classFotter1
email = models.EmailField(max_length=300)
Anonymous
but i can not migrate new added email!
cj
you either truncate the DB table (or drop the entire DB) (depends on the stage you're on the project), set a default value to the field, or make it nullable
Shubham
Anyone here knows how to change the ui of the django-ajax-selects?
ändrew
guys I really-really need your help
ändrew
im stuck on some weird issue I can't run migrations main nor migrations nor anything else
ändrew
https://del.dog/mocyhegirf
ändrew
updated django to 2.2 (I have to use 2.2.*<=) with python 3.8 (changing venv to 3.7.4 didn't help)
ändrew
also changing db to postgres raises same issue
CodeTechDeveloper
Any one can provide a link for studying basic python for bigginer
ändrew
dude, it's not even @python
CodeTechDeveloper
Anonymous
hi
why when i change djanog User fields it doesn't work?
Anonymous
Dhruva
I m not able to add extra fields in customregistration
Anonymous
HELP PLEASE
.
.
I am finding it difficult to manipulate html thing in django. Made polling app completely. Wanna make a web scrapper.
Anonymous
Anonymous
Melvin
I am trying to build an app to share notes and stuff for college students.(rest framework)
How do I set permissions so that only the user who uploaded a file can update or delete the models and all other users get read permission only?
Supernoobuser
What is the best package for make graphics in Django?
Cesar
A.M
Guys when I tried to start a new project, Iam unable to get the manage.py file
A.M
Any issues with my install
Anonymous
django.db.utils.OperationalError: no such table: basic_app_products
Anonymous
how to solve this error
Valery
Did you forget to do migrations?
Abhi
KumiShida 💖
Hi guys,
I'm using Django Channel for socket, can I count number of clients that are connecting to Django Channels?
Abhi
Anonymous
Yup I registered my model in Admin py
Valery
Try to do python manage.py migrate app_name
Anonymous
Anonymous
OK then do makemigrations. N see
i did, but it did'nt matter
class RegistrationForm(UserCreationForm):
email = forms.EmailField()
class Meta():
model = User
fields = ('username', 'email',)
Anonymous
Anonymous
hello i need some help , how to showing the ckeditor on my html form templates, it works fine in admin app, but i want to use in my own templates thanks
cj
Anonymous
works
Anonymous
thankyou
Aditya
Yogesh
I knows basic oop concept and some basic syntax of Python,
I want to learn Django Framework
From where I can start?
Please Help
Melvin
Melvin
this is my permission class.
here uploaded_by is the uploader
The field defenition is:
uploaded_by=models.ForeignKey('auth.User',related_name='textbooks', on_delete=models.CASCADE, null=True)
Melvin
i have added the permission class in the viewset class too
Melvin
https://dpaste.org/xOQ9#L3
Dhruva
create_user() got multiple values for argument 'first_name'
Dhruva
error while creating superuser
Dhruva
https://dpaste.org/VdrU#L7
Abhay
Due to the recent COVID-19 outbreak, we are stuck at home as a precautionary measure, with nothing much to do. We need to corporate with the government and refrain ourselves from public events and meet-ups. Self-isolation can be boring. Hence, we are coming up with something different where we can work and learn together, remotely. SDS Code Along. Why be idle? Let's learn and code together at our homes.
The platform is live on https://codealong.studevsoc.com/
This a community driven project and we welcome more content from our community members in areas of their interest anything from programming languages to DevOps.
Git repo - https://gitlab.com/studevsoc/sds-codealong
All the instructions are in the README of the above repo.
Please read the python and django sections. You can propose changes here or raise a pr to repo
Phillip
hey guys, i would like to ask how can i run multiple sites on different domains with a single admin interface and same code base in django
Grigoriy
Hi, guys. Could you tell me, please, which value to use in CONN_MAX_AGE to prevent opening new connection on every request and reuse old connections?
I'm fighting the 'Too many clients already' error with PostgreSQL
Anonymous
Hey ,guys i need help
I am deployed my Django application on aws but when i am bind gunicon to wsgi then it's showing error
Anonymous
Can not connect to ('0.0.0.0:8000)
Anonymous
Also showing error on 0.0.0.1
Kushal
How to call Dishes Name from Dishes model to Recommendation model?
Anonymous
https://hastebin.com/quzatodero.py
cj