[no subject]

2022-10-13 Thread Dieu merci Dramani
Thank you for the best teaching for striming images on
+django-users@googlegroups.com 

I'm Dramani Dieu merci  a new-django learner.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADDd42aTifckwyViQ8LD0wYJaEH4MRpS4dNSSxr-SEAG2y%3DTrA%40mail.gmail.com.


Re:

2022-09-27 Thread Dieu merci Dramani
Add me +243 82 830 10 21
Thank you

Le lun. 26 sept. 2022 à 14:53, Abdulfarid Olakunle 
a écrit :

> Hello fellow developers, I will be creating a WhatsApp group chat later in
> the day, So I will like my fellow Python Django Developers to join the
> group. It will be much easier to discuss there and I will sacrifice myself
> out for anyone who need my service.
>
> God bless you all
> Enjoy your day
> Biliaminu
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BccuR0goa8Mu9MqNLyZtCAJedHKpVZ6pFfrpXKFJdjaRrgttQ%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADDd42Z2wpJ3cMwSgZRY9Cn8BPWjjc4vRnQ8mbdAbK2FeOk00g%40mail.gmail.com.


Help on my cart.js file using Django 3.2.15 in python

2022-08-13 Thread Dieu merci Dramani
This work :
productId:  1 action:  add
cart.js:9 USER: setraco
cart.js:20 setraco is logged in ! Sending data ...

cart.js:22
Here is the errors that I'm trying without success:

POST http://127.0.0.1:8000/update_Item/ 403 (Forbidden)
updateUserOrder @ cart.js:22
(anonymous) @ cart.js:14

VM29:2 Uncaught (in promise) SyntaxError: Unexpected token '<', "
 {
return response.json()
})
.then((data) => {
console.log('data: ', data)
location.reloads()
})
}

html side update button :


 Ajouter au Panier


views.py side :


def updateItems(request):
data = json.loads(request.body)
productId = data['productId']
action = data['action']
print('Action: ', action)
print('Product Id: ', productId)
customer = request.user.customer
product = Product.objects.get(id=productId)
order, created = Order.objects.get_or_create(customer=customer,
complete=False)
orderItem, created = OrderItem.objects.get_or_create(order=order,
product=product)

if action == 'add':
orderItem.quantity = (orderItem.quantity + 1)
elif action == 'remove':
orderItem.quantity = (orderItem.quantity - 1)

orderItem.save()

if orderItem.quantity <= 0:
orderItem.delete()
return JsonResponse('Item was updated', safe=False)

urls :

from django.urls import path
from . import views
from django.conf.urls.static import *


urlpatterns = [
#path('admin/', admin.site.urls),
path('', views.store, name="store"),
path('cart/', views.cart, name="cart"),
path('checkout/', views.checkout, name="checkout"),

path('update_Item/', views.updateItems, name="update_Item"),
]



Thanks for your help.

*dieumercidram...@gmail.com *
*dramspy...@gmail.com  *
*+243 82 83 010 21*

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADDd42bBDg78Pu7YbLpKRWrRjyuwkoY0NBnx3%3DX%3Dt-Tt5Od%2B7w%40mail.gmail.com.


Re: Active Django Communities

2022-08-10 Thread Dieu merci Dramani
You're welcom !

Le mer. 10 août 2022 à 15:48, Abdullah Nafees 
a écrit :

> Hey all,
>
> I am a new Django and Django REST user. I was wondering what and how many
> official user communities exist for Django as there is the Python Discord
> server which is pretty active. Thank you.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4a9a3cce-a310-498d-8651-d6dfe3cc8bb1n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADDd42Y5jqUjHrP9VzhUr6O8YGTqByohS-22%2BizJnE-cXWi4Vw%40mail.gmail.com.


Aide pour erreur

2021-06-10 Thread Dieu merci Dramani
Bonjour tous !
Je suis nouveau en django-python et j'apprends.

voici le fichier contenant le sms d'erreur. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/15b87f54-afa1-4f01-9e6e-a496fe0fa81fn%40googlegroups.com.
Request Method: GET
Request URL: http://127.0.0.1:8000/

Django Version: 3.2.4
Python Version: 3.9.5
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'stocksystema']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']



Traceback (most recent call last):
  File "E:\2090 
all\2090_JANGOPROJECTS\gohostockmanagement\v_gohostockms\lib\site-packages\django\core\handlers\exception.py",
 line 47, in inner
response = get_response(request)
  File "E:\2090 
all\2090_JANGOPROJECTS\gohostockmanagement\v_gohostockms\lib\site-packages\django\core\handlers\base.py",
 line 188, in _get_response
self.check_response(response, callback)
  File "E:\2090 
all\2090_JANGOPROJECTS\gohostockmanagement\v_gohostockms\lib\site-packages\django\core\handlers\base.py",
 line 309, in check_response
raise ValueError(

Exception Type: ValueError at /
Exception Value: The view stocksystema.views.home didn't return an HttpResponse 
object. It returned None instead.