Mirco
Anonymous
hello how to call java code in python help plz
Anonymous
Stanislav
Colleagues, I need help.
Studying Django, there was a problem during migration.
Already googled, tried it, the application is registered in the settings.
ModuleNotFoundError: No module named 'crm.apps.CrmConfigdjango'; 'crm.apps' is not a package
Anonymous
Hi , I have a project, which is running in 2 ways.
1. Website (running through gunicorn and nginx (normal mode))
2. A telegram robot that is executed by stopping the project and we can access the models.
What the program does:
An http request comes to view. And the website receives that request.
Now the processing method is done, and when it is done, it is sent to a series of functions to request, for example
success, failed, pending
It is at the expense of a web.
And now when I receive this request, I want to send the answer to the user in Telegram using the Telegram robot that patches the project.
(The part of the solution that is crossed) means failed.
I wanted to create a table, and when a request comes to view, I save that request in the table. And in the Telegram project, I receive it through signals and send a message to the user.
But well, because the two are connected to the same project, they are still separate and the signals are sent only to the website itself and not to the Telegram robot. If I make an update in my robot, for example, the robot will receive the update itself. . (Database and signal)
Well, with these interpretations, how do you think this problem can be solved, the reason why the program itself should send that request is that if I send it directly, the program can not deliver the message to the user because in the session I create on the site separately, talk to him I do not have a user and we must have a conversation in that session. And I have to use the robot's main session.
And one of the reasons I asked this question was that I didn't want to make a circle to look at the table for the results, and I wanted to see if a better idea would come to your mind so that it could be written better.
Anonymous
'str' Object has no attribute 'get'
During Rest framework
Why this error occurred
Anonymous
Thara
Hey guys... I'm at very beginner level at django... I'm creating lms web page... I've created every pages seperately in HTML format... But I'm unable to link that properly... If I click to navigate to another page... It's showing page not found...
Anyone help me to sort out this issue
Kweyu
hey huys why am I running into this when installing Docker on my Windows 10 computer
Kweyu
Component CommunityInstaller.EnableFeaturesAction failed: Not found
at CommunityInstaller.InstallWorkflow.<DoHandleD4WPackageAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CommunityInstaller.InstallWorkflow.<DoProcessAsync>d__23.MoveNext()
Kweyu
Hey guys why am I running into this error when installing Docker on my comp Component CommunityInstaller.EnableFeaturesAction failed: Not found
at CommunityInstaller.InstallWorkflow.<DoHandleD4WPackageAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CommunityInstaller.InstallWorkflow.<DoProcessAsync>d__23.MoveNext()
Amir
Doragonsureiyā
Thara
andrey
Hi. I have a view to recalculate values (g -> kg). Quite simple. I did it just for self-education.
There is a django form to add data inside of view and simple formula to re-calculate.
Now, i want to test such view to give it the value and compare "output" with correct figure somehow in tests.py.
Is it possible to do somehow? there is a code of view itself:
https://pastebin.com/tUkzsUvR
Thanks in advance for any advice! )
andrey
trying to do something like:
def test_weightconverter_view_calculation(self):
response = self.client.get('/weight_converter/',
{'value_in_g': '1234'})
self.assertEqual(response.context['result'], 1.234)
andrey
upd: got reply already
it works:
def test_weightconverter_view_calculation(self):
response = self.client.post('/weight_converter/', {'added_data': '1234'})
self.assertEqual(response.context['result'], 1.234)
Stealth
anyone worked on pymodm..?
Stealth
need help in embedded models...
kuzmich
Stealth
andrey
Anonymous
GV
Hi
I am doing a project called online course system in that I am included videos , now my problem is if I logged in and start watching the video (assume it is 10 min video) after 5 min I log out and when I login next time the video will resume from 5 th min only . I don't know how to implement this . So, pls can anyone help me in doing this project
GV
....
....
Sunny
Hi guys
Sunny
Any one have campus recruitment system project documentation
$ A C H ! N
Hey I am looking for an internship in python.
Is there anyone who can suggest me .
Jitendra Kumar
How to import data from Excel to mysql database using python?
Jitendra Kumar
Please help me
Sahil
How to do star rating using django
Anyone please help me.......
John
Heyy guys please help
How can we check whether a date is greater than or equal
def expired(self, obj):
current_date = datetime.now()
end_date = obj.updated_at
if current_date > end_date:
return True
else:
return False
In this
John
This is in admin.py
Anonymous
i am facing (FOREIGN KEY constraint failed) error
Anonymous
class MemoryUpdateView(BSModalCreateView):
template_name = 'userapp_temp/memory_edit.html'
form_class = MemoryModelForms
success_message = 'Success: Memory was created.'
success_url = reverse_lazy('notification:memory_view')
def form_valid(self, form):
memory = form.save(commit=False)
form.instance.notification_id = self.kwargs.get('pk')
form.instance.babyinfo_id = self.kwargs.get('pk')
form.instance.user = self.request.user
return super(MemoryUpdateView,self).form_valid(form)
def get_context_data(self, **kwargs):
context = super(MemoryUpdateView, self).get_context_data(**kwargs)
context['notify'] = Notification.objects.filter()
return context
Quang
Hi guys
Quang
how can we migrate sample data with django migrations ?
Tech
Hi guys
Tech
How to fetch data from any existing database without creating models in django
Swati
https://hastebin.com/idosibikip.yaml
Swati
m getting OSerror at /
Swati
i havent started coding much in django, juzt one function in views. so can someone rectify my error
âshîsh
Nitish
Hi
How do I add additional value to POST data in django? I want add user_id = 5 to the post value
Anonymous
hi,
I want to enable HTTPS in Django web app, I have containerized my Django webapp with postgress DB (I'm not using gunicorn and nginx).
can anyone tell me how to enable HTTPS please..
Amir
Amir
you must use ssl that config in web server
Anonymous
ok..
Rakshan
How to update forms
Jai
I want to update the frontend whenever the database is updated. Any leads to achieve this?
Thara
When I try to install "pip install django" it was showing liek the term pip is not recognised..?
Thara
What to do😖
プラティク
Thara
Already showing C:\Users\(system name)>
Thara
Like this
VISHNU
From front end I am getting product_id variant_id ,how to serialize this two I'd into one and return response.
VISHNU
One serializer*
プラティク
プラティク
Uninstall python and install again and while installing don't forgot to tick add to path
Dev
Pulling a decimal field from a query using .values() and i dont
want the returns to have the format "0E-8". Being trying to
annonate and even cast to get a char representation and then directly pass
it to a function i created but it doesn't work
Any idea how i can get a string representation ("0.0000323") using the orm instead of "0E-8"
Dev
WalletHistory.objects.annotate(
btc = btc_normalize(F("btc_amount"))
)
Dev
the btc_normalize in there is a function i created
Tanu
How to add image and gender in crud operation
Dev Femi Badmus
Wanna send media to explain my issue
Dev Femi Badmus
A screenshot please
Dev
how to create cryptopher bot in django python code
Anonymous
How to retrieve video stream from frontend to django server to apply detection in video
Ali
No apps installed with this label 'app_one'.
I am trying to make a migration but all the time it says no apps installed with this label.
Can anyone help me with this issue?
mukul
which database is good for django ecommerce site
Fazil
Fazil
Go with anyone
Anonymous
posgresql is more popular
mukul