shruti
I have made a login signup system using drf and 3 rd party ..with full authentication I am going to deploy it. One think I want to ask if there any risk of my email account getting hacked or any other activity if I will deploy my login system in heroku since my login signup api has authentication related to sending email to users who signup for authentication ???
Baggy ️️
Is there any view associated with that url
Full stack developer (React, Django)
{item['category'] for item in catprods} can anyone tell what does this means
Khumoyun
Hello, I need help can I set variable for my form field in forms.py for example: If I have group field, I can use it {{ form.group }} in my template. But I need like {{ form.my_variable_name }} my target is fetch data from group by filter. reason is I have multiple fields which displays group items
Anonymous
Create form with only required field in meta class
Anonymous
How can we use multiple sweet alerts for showing error msg and success msg plz help
Root
Hello. I have a Product model with field "views" Do you have any idea of how I can retrieve the top 10 most viewed products for last 48 hours?
aleks-th
But it can be simpler
Root
google analytics :)
I want to show the list in home page. So, I need the django way 🌷
aleks-th
I want to show the list in home page. So, I need the django way 🌷
Why can't you just save the number every time the page loads?
Root
Why can't you just save the number every time the page loads?
I can. But how can I track visits for a specific period of time? That's my problem...
Sadra
Hey guys. Please take a look at this topic on stackoverflow and let me know what you think about it. Really bugged me.. Thanks. https://stackoverflow.com/questions/64718414/how-to-add-lang-attribute-to-a-pre-tag-in-python-markdown
aleks-th
I can. But how can I track visits for a specific period of time? That's my problem...
At each upload, we write the time. And we count how many such records there were in 48 hours, for example.
Root
At each upload, we write the time. And we count how many such records there were in 48 hours, for example.
Yeah this is possible but after 48 hours, I will have more than 100,000 rows in the database...
aleks-th
Root
Well, let him write. Can still collect the necessary data.
That will be so expensive and costly...
Mehran
Is celery used for django rest framework?
Mehran
Maybe
I mean do I have to learn it?
Yuvi
I need face recognition project using django
Anonymous
👍
Artur
I need face recognition project using django
https://github.com/manjillama/facial-recognition-python-django
Artur
Try this
Artur
Is errors in face detection or errors with start project?
Artur
Yuvi
Yuvi
Face detection
марат
sorry for the stupid question. I know python quite well and think I'm ready to learn web programming. which framework to start with - flask or django?
Dni
def get_absolute_url(self): return reverse('shop:singleProduct', args=(self.slug)) anyone can explain this def for me ??
Dni
For dynamic urls.
but it dos not work :((
Bunty chhatri wala..
Dni
What error?
Reverse for 'singleProduct' with arguments '('f', 'a', 'n', 'd', 'a', 'k', 'e', '-', 'a', 'v', 'a', 'l')' not found. 1 pattern(s) tried: ['(?P<slug>[-a-zA-Z0-9_]+)$']
Dni
What error?
path('<slug:slug>', views.singleProduct, name='singleProduct')
Dni
args = [ str( self.slug) ] Try this
ty bro ❤️❤️❤️
Lucas Ravellys
kwargs={'slug', self.slug}
Dni
Insert parameters like kwargs
ty it's working 🙃❤️
Eddie Young Jnr
I’m getting an error in my Django app. from .form import contactForm ImportError: attempted relative import with no known parent package Why am I getting this error and how can I fix it please 😣😢
Eddie Young Jnr
I have a forms.py module and I have a class named contactForm in forms.py well. Django version is 3.1 Python version is 3.8
М
Всем здарово на сайте есть товар и корзина я добавил товар в корзину а через админ удалил товар теперь я на сайте обновляю страницу выходит ошибка NoReverseMatch at /cart/ Reverse for 'cart_add' with arguments '('',)' not found. 1 pattern(s) tried: ['cart/add/(?P<product_id>[0-9]+)/$']
Giuseppe
Hi guys, in my template, I make a AJAX POST call. The view connected with this call, make a file. Is it possible to show to the user a window for downloading this file after response of the call? Sorry for my bad english, I hope I was clear Thank you
Giuseppe
Doragonsureiyā
I just saw thank you!
You're welcome! 😊
Anonymous
в следующий раз, когда вы разместите что-либо, используйте английский язык
М
It's great for everyone on the site there is a product and a basket, I added the product to the cart and through the admin I deleted the product, now I am updating the page on the site with an error NoReverseMatch at / cart / Reverse for 'cart_add' with arguments '(' ',)' not found. 1 pattern (s) tried: ['cart / add / (? P <product_id> [0-9] +) / $']
Eddie Young Jnr
Sorry that’s what I’m doing
Eddie Young Jnr
I’m getting an error in my Django app. from .forms import contactForm ImportError: attempted relative import with no known parent package Why am I getting this error and how can I fix it please 😣😢
Anonymous
I want to develop a mobile billing system can anyone one guide me it will be helpful
Anonymous
The modules I want to build are registration, login ,homepage pre n post recharge , payment page
Anonymous
Registration and login comes with django, you may need to extend the user model if you want. The others are almost simple
Eddie Young Jnr
May be Your files are not structured correctly
I’m using a tutorial. I’ve gone over every step carefully
Eddie Young Jnr
May be Your files are not structured correctly
And still having the same issue
Anonymous
You may need to double check the imports
Jimmy
Good morning, someone who knows the OOHDM methodology, and how it could be implemented with Django
on
Hi can anyone tel me hw to develop a tracking system of consignments in Django for logistics business
Anonymous
items = Item.objects.exclude(in_stock=0) pls am getting Unresolved attribute reference 'objects' for class 'Item'
Anonymous
pls can anyone help me
عــمــر
How can i deploy my project to aws , i search but i find a lot of tutorials, its so complex ,there any easy way to do this ?