Utkarsh
Hey friend pleas help how i make filter like zomato Location search
Anonymous
How to resolve 1054 error in django
Anonymous
DatabaseError: (1054, "Unknown column 'polls_user.id' in 'field list'
Anonymous
Yes
Anonymous
In admin pannel
Anonymous
When I add in subcategory
Anonymous
Showing error
Charly
In admin pannel
you are not supossed to ran migrations on admin panel
Anonymous
I have mode one fireignkey to category and subcategory
Charly
seems you didin't ran or even you didin't generated migrations for model changes
Anonymous
No I run it on cmd
Anonymous
Python manage.py makemigrations
Anonymous
Then python manage.py migrate
Raid
how to create desktop app using django ?
TheDoc
Check https://stackoverflow.com/questions/3787237/django-models-1054-unknown-column-in-field-list
Charly
how to create desktop app using django ?
you don't, django is for web apps
Charly
Hi
I'm not the onte with the problem
Raid
you don't, django is for web apps
how about using electron js ?
Charly
Check https://stackoverflow.com/questions/3787237/django-models-1054-unknown-column-in-field-list
but this not valid anymore, this from when django didin't have migrations
Charly
how about using electron js ?
yeah you can, but still you don't use django
TheDoc
👍
TheDoc
https://youtu.be/0SB9K8Dr5ck
Anonymous
I want to know what is ' pip install virtualenvwrapper-win ' who know plz???
Charly
I want to know what is ' pip install virtualenvwrapper-win ' who know plz???
pip is a program to install packages, in this case install the virtualenvwrapper-win package
Cimara
Good night, because my user can only connect when the admin is logged in. What can I do to change this can someone help me.
Ꝉ𝖎𝖆𝖒 눈‸눈
pip is a program to install packages, in this case install the virtualenvwrapper-win package
What does virtualevnwrapper do? What does the "workon" function do?
Charly
What does virtualevnwrapper do? What does the "workon" function do?
- Search that on google/duckduckgo - It it's on virtualenvwrapper docs
Pavel
Is there a way to switch reads back to 'primary' database if 'replica' db failed? is there some failover settings?
Manpreet
u must not use static with a cdn url it’s used for local files only
Manpreet
remove static from line 12 and directly use the cdn link in href
Anonymous
https://i.imgur.com/6itA2xN.png
Anonymous
Anyone have idea why it still asks for login?
Shubham
when i put debug = false media files are not showing
հօรรεiռ
Shubham
actually I'm a newbie do u have any guide how can i do this
Shubham
actually i have deployed my django app on heroku media files are now showing
Shubham
plz help
հօรรεiռ
Managing static files (e.g. images, JavaScript, CSS) | Django documentation | Django https://docs.djangoproject.com/en/3.1/howto/static-files/
Shubham
thanks mate
Akash
class User(AbstractUser): STATUS = Choices('unverified', 'verified', 'rejected') name = CharField(_("Name of User"), blank=True, max_length=255) class KYC(TimeStampedModel, StatusModel): STATUS = Choices('unverified', 'verified', 'rejected') user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='kyc_documents') file = models.FileField(upload_to='kyc_documents') def save(self, *args, **kwargs): super().save(*args, **kwargs) if not self.user.kyc_documents.filter(status=KYC.STATUS.unverified).exists(): self.user.status = self.status self.user.save() Now I want to restrict all views except dashboard to be only available when user has verified KYC status. What's the best way to do this? Or I have to add UserPassTextMixin in each one of my views
It's Me
Is it possible to run entire django App (social media kind of app, with 2000 active users anytime) on aws lambda/google functions but database will be external like AWS RDS
Alikhanov Jakhongir
hi guys! I wanna reschedule Background triggered jobs when server is updated(reran) that's why I found something here https://stackoverflow.com/questions/6791911/execute-code-when-django-starts-once-only ! But i am getting an error ModuleNotFoundError: No module named 'auction' when i added default_app_config = 'auction.apps.AuctionConfig' inside myapp/init.py Can anyone help me with this problem? thanks
Shubham
I'm having problem related to deployment on heroku in which my static files are not working though I have added static files setting in settings.py can any one help me to solve this problem?
Sumit
Hi, I am using graphql for signup and login.
Sumit
When I am doing signup , it is sending a link on my email to activate
Sumit
When I am clicking on this it is throwing following The current path, activate/eyJlbWFpbCI6InNoYXJhbnN1bWl0a3VtYXJAZ21haWwuY29tIiwiYWN0aW9uIjoiYWN0aXZhdGlvbiJ9:1lIQtA:eoxWBG-myfbro8nfXFfxxgHW5EiNs7rPsOhhSu77GIM<, didn't match any of these.
Sumit
Using the URLconf defined in django_backend.urls, Django tried these URL patterns, in this order: admin/ apis/v1/ graphql
Anonymous
Any job offer..? Intern..?
Musarat
Assalam-o-Alaikum
Musarat
i have to link my html file with python code
Umar
Waliakum asslam
....
Assalam-o-Alaikum
it seems our bot is on leave😉FYI only English
Umar
Literally this is English😜
....
yesterday it took milliseconds for the bot to warn me
....
About what
I wrote sth similar, and it warned me to use english
....
so I'm wondering what happened today
Umar
Where is that msg
....
admin deleted
Umar
Ok
Musarat
can anyone guide me about my question
Umar
You need to explain it more so that it is clear enough for someone to answer
Musarat
media content is not allowed
....
can anyone guide me about my question
I am not an expert: but t this helped me. https://youtu.be/lSgRWA4PMt4
âshîsh
i have to link my html file with python code
Yesterday I gave u documents references. I think u have not gone through that.
Musarat
plzz