Devesh
what do you mean by that?
We have different 3 to 4 python files named as phone detection, book detection, multiple face detection. We want to run those file same time for particular duration for cheating detection while appearing test
Gautam
https://dev.to/gautamankul/dickerzing-a-python-django-web-app-on-ubuntu-21-04-54o7
Macurrent
Deleting the migration directory is never a good idea, because Django then loses track of which migration has been applied and which not (and once an app is deployed somewhere it can become quite difficult to get things back in sync) Is this statement true??
E
anw thanks for answer
Dev
FileNotFoundError: Could not find module 'libc.dll' (or one of its dependencies). Try using the full path with constructor syntax. [DONE] Killing all processes with signal SIGINT 9:35:17 AM web.1 Exited with exit code null
Pixelated
Small query. Let's say I have 2 schemas. 1. Customer Profile has one field- name 2. Usage stats has a field that uses customer as a foreign key. There may be many items using same customer name. Is there a simple way to get all the data associated with each of the customer profile
William
Pretty much yes
user = User.objects.all() for i in user: i.stats.all()
William
user = User.objects.all() for i in user: i.stats.all()
Try printing out this line you will get to know what's the output.
coder
Guys; I have face problem with report lab ? Expert can help me
Doragonsureiyā
Guys; I have face problem with report lab ? Expert can help me
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Anonymous
And am trying hard to be able to code without copy pasting
Dennis ivy YouTube channel is best for django Tutorial
coder
Guys; I have face problem with report lab ? Expert can help me
I want to show data in list down how to do?
Macurrent
is there a way to compare whats the difference between two projects. eg i am having a django project called Newspaper project but comment section is not working for me though i think i have done everything as expected Here is my project 👉https://github.com/Macurrent/NewsPaper-Project Here is the same project which has the comment section working 👉 https://github.com/wsvincent/djangoforbeginners/tree/master/ch15-comments . Where do you think i might have gone wrong??
Siroj
Hi guys, I have a problem with makemigration, when I enter 'python manage.py makemigration', it's return me ( No changes detected) help me?
Rahkmanuly
Write migrate
Rahkmanuly
python manage.py migrate
William
Hi guys, I have a problem with makemigration, when I enter 'python manage.py makemigration', it's return me ( No changes detected) help me?
It means you haven't made any changes to the models.py file. If you have updated a field or added a new field or renamed then only makemigrations will work
Rahkmanuly
To apply previous changes
William
After successful migration, you need to update it to the database by doing migrate command
Beto
Hi guys, I have a problem with makemigration, when I enter 'python manage.py makemigration', it's return me ( No changes detected) help me?
I know this commonly solved by deleting de sqlite3 DB that is used in the development process. Also, I know this question is currently solved, but I want to leave my case here as an alternative. Sometimes while we are programming we change a lot of things in our models. When we run python manage.py makemigrations a file is created inside of our app folder/migrations. And when we run python manage.py migrate a record in the table django_migrations is created. this record contains 3 fields we must check in detail: 1 - name (this is the file name created in the migrations app folder) 2 - app (this is the name of our app. Also works like a namespace to prevent conflicts) 3 - applied (this is the date-time when the migration was executed). If you've modified your model previously, you should have several files inside migrations (amount accordingly with the times you've executed makemigrations on every change), in my case I wanted to erase these files just to have only one migration file. The problem with this is that when makemigrations was run again it creates a file 0001_initial.py. If you remember the table django_migrations contains a log of this file, this is to prevent the execution of migrations that already have been done. If this is your case, you would erase the records of your app migrations from this table.
Abdulaziz
is it possible use filter like this class DriverListView(LoginRequiredMixin, ListView, FilterView): model = Driver template_name = 'table/driver/driver_table.html' context_object_name = 'drivers' ordering = ['-data_create'] paginate_by = 10 filterset_class = DriverFilter
Rahkmanuly
Wtf?
William
Ask your family members in telegram. Send them a message
Rahul
Guys, I am working on a django quiz project but stuck at question navigator cum attempt status panel, please help me to create this panel.
Ilsaf
how can I rewrite this to look nice? https://pastebin.com/ute49n04
S_____H
How can we style django form, when we use only {{form}} in the html template?
S_____H
How can we style django form, when we use only {{form}} in the html template?
Also, if I want to add some text in between the fields of the form For example, I have 3-4 field such as name, dob, etc After this, I want to add some text like "Educational qualification" Then what should I do in this case?
S_____H
You have to create it manually
So, There is no chance to do this by using django forms?
William
So, There is no chance to do this by using django forms?
As you want to add custom names so Django can't generate those names automatically for you.
Anonymous
😅
Lionheart
👆
Zvs
ребят почему в from celery.task import periodic_tasks нету его?
Dev
FileNotFoundError: Could not find module 'libc.dll' (or one of its dependencies). Try using the full path with constructor syntax.
Dev
how to solve this eroor any suggest
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
Can anyone contact me Whose know that to install django in pycharm in window 10
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
Please 🙏🙏🙏🙏🙏🙏
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
I have searched
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
Search youtube
can I contact you
Harish
Hi, I'm receiving the following error, this is happening for all signals defined riasec.django_signals.kyc_user_type: (signals.E001) The function 'pre_save_kyc_user_type_handler' was connected to the 'pre_save' signal with a lazy reference to the sender 'riasec.kycusertypemodel', but app 'riasec' doesn't provide model 'kycusertypemodel'. This is my signal definition @receiver(pre_save, sender='riasec.KYCUserTypeModel') def pre_save_kyc_user_type_handler(sender, instance=None, **kwargs): signal_logger(model_name='KYCUserTypeModel', signal_kind='PRE-SAVE', sender=sender, kwargs=kwargs, instance=instance) That function only logs the information passed to it Can you guys help?
akshay
Upolod images or video in django
Doragonsureiyā
Upolod images or video in django
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 first results
Harish
It's weird because it was working an hour ago
Mirco
It's weird because it was working an hour ago
I think you have the model inside a models file a not directly into the app init file
Rabbits
Hello guys. How i can to rename field in values()? ads = .extra(select={'username': 'author__username', 'photo': 'author__photo'}) \ .values('id', 'username', 'photo')
Ajitesh
How can we style django form, when we use only {{form}} in the html template?
very easy you can customize just remember the model filed name and attribute of html , i Never used {{form}}
Tamim
where you deployed ?
webpythonhosting
Ajitesh
webpythonhosting
Have you taken domain for other languages?.
Tamim
Have you taken domain for other languages?.
my domain does not have problem , my url is contain arabic characters , i want to get some arabic words by get request then compare it with value that i have in databse
Tamim
use uri_to_iri function
thanks i will try it
Morteza
thanks i will try it
do you have problem with slug only?
Tamim
do you have problem with slug only?
no I just changed urls. now i dont use arabic url
Morteza
if it is the base url like domain.com/product/... it is better to be english but if your url like domain.com/product/<slug>/ and the slug is unicode(persian language) you need before getting the object, turn the slug to iri from django.utils.encoding import uri_to_iri slug = uri_to_iri(slug)
Hey It's
Hi there! i'm learning Django, i have some questions, if you have some time please help me :) ill link my question from stakoverflow https://stackoverflow.com/questions/68059751/populate-django-databasesql
Anonymous
Hi guyz!!! I've a doubt! Inorder to connect ReactJS with django rest framework, we should add configurations in settings.py like, 1. 'corsheaders' to installed apps. 2.'corsheaders.middleware.CorsMiddleware' to middleware. 3. CORS_ORIGIN_WHITELIST = [ 'http://localhost:3000' ] And I successfully built it... But now I want to connect React Native + Django , For this, what kind of configs are needed to be added to settings.py? Doesn't it need the above 3 steps to be followed? Please help me... Have a sweet day 🍬..
Anonymous
where i can store the image that are get from user ??
Marcos
where i can store the image that are get from user ??
Create a model profile with relatión onetoone to user model or extend user model and add picture attribute