Arabic text is written in reverse when filling PDF form and saving it

2024-05-14 Thread Yousuf Yousuf
I'm using fillpdf library to fill in a PDF form. When I use it externally 
it works fine and all.
When I save the file generated by fillpdf to my model the Arabic text 
becomes reversed.

[image: Screenshot 2024-05-14 120336.png]

This is my code:

import requests
from fillpdf import fillpdfs
from django.core.files import File, base
from io import BytesIO
from django.forms.models import model_to_dict

ctx = {
'full_name': 'منصور أحمد',
'current_nationality': 'الإمارات العربية المتحدة'
}

response = requests.get(
"http://localhost:8000/static/document/form.pdf;)
if not response.ok:
log.error("couldn't get form")

in_stream = BytesIO(response.content)
out_stream = BytesIO()

fillpdfs.write_fillable_pdf(
in_stream,
out_stream,
ctx,
flatten=True
)

with open("output.pdf", "wb") as f:
f.write(out_stream.getbuffer())

application.arabic_document.save("Some fillpdf file.pdf", base.
ContentFile(out_stream.getbuffer()))

-- 
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/e7769405-358e-4f83-bd1f-90ef2fc61b47n%40googlegroups.com.


Re: Account verification

2024-05-13 Thread Anthony Flury
Your register view is setting is_active to True - regardless of email
verification.

Remember that the email confirmation will happen asynchronously to the
registration.

What I do is have a separate table that records that a user needs to
complete the verification process.
So registration sends the email (with a link) to the user and adds a record
to the verification pending table.

I then have the verification view which sets the user to be Active and
deleted the record in the pending table.



On Mon, May 13, 2024 at 1:27 PM Kennedy Akogo 
wrote:

> I'm attempting to implement a registration system with email verification.
> While the email verification functionality is working - sending an email to
> the user for verification - I'm encountering an issue where users are able
> to log in even without verifying their email addresses.
>
> My goal is to restrict login functionality for users who haven't verified
> their email addresses. In other words, users should only be able to log in
> if they have completed the email verification process.
>
> Please advise ,I have attached images of the login and register view
>
>
> --
> 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/CAJBDwusqGZXgHHg55uOvh_9h1VB8D3o1pxfLPcaJTJHViXrwZg%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/CAN0Bb7eQQ76s_VL2z%2BSc%3DEfHH%3DxqRePsp9Ph8teC2KN2ZqjF2w%40mail.gmail.com.


Serving static files with whitenoise

2024-05-13 Thread Richlue King
Hi, I'm trying to upload my project to render.com and I need to set up the 
static files with whitenoise. However, when I run collectstatic, I keep 
encountering this error:

Post-processing 'assets\css\bootstrap.min.css' failed!

raise ValueError(
ValueError: The file 'assets/css/bootstrap.min.css.map' could not be found 
with 
Could somebody please help me with this?

-- 
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/75882c41-d554-462a-96f5-d853bc3125a1n%40googlegroups.com.


Re: very urgent

2024-05-13 Thread Babatunde Mabinuori
Good day,
The error occurs because "usagers/login.html" doesn't exist in your 
template file or wasn't properly referenced. Kindly check the filename 
properly to see if it exist, the filename is correctly spelt and well 
referenced.
On Sunday, May 12, 2024 at 4:03:41 PM UTC+1 Yann wrote:

> Please does somoene can help me with this:
> [image: Capture d'écran 2024-05-12 091648.png]
>

-- 
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/ed4dc3aa-03fa-4589-b148-c881e216a4c3n%40googlegroups.com.


Re: very urgent

2024-05-13 Thread Agar Joshua
whats the folder structure for your templates?

On Sun, May 12, 2024 at 6:03 PM Yann  wrote:

> Please does somoene can help me with this:
> [image: Capture d'écran 2024-05-12 091648.png]
>
> --
> 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/8b6516df-3fa8-47a6-813f-8fb3c786a639n%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/CALHJg5LP4TcO0ct%2BT6-%3D%2B1ckLd%3Dg7e8sC7g%3DmBPUf0OX5wKMrg%40mail.gmail.com.


DO you know that error I been trying to fox it since 6 hours with no udaptes

2024-05-12 Thread Yann
 TemplateDoesNotExist at /login/ usagers/login.html 
Request Method: 
GET 
Request URL: 
http://127.0.0.1:8000/login/ 
Django Version: 
4.0.3 
Exception Type: 
TemplateDoesNotExist 
Exception Value: 
usagers/login.html 
Exception Location: 
C:\Users\Yann\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\template\loader.py,
 
line 47, in select_template 
Python Executable: 
C:\Users\Yann\AppData\Local\Programs\Python\Python312\python.exe 
Python Version: 
3.12.1 
Python Path: 
['C:\\Pwd-H2024\\critiques_gastronomiques', 
'C:\\Users\\Yann\\AppData\\Local\\Programs\\Python\\Python312\\python312.zip', 
'C:\\Users\\Yann\\AppData\\Local\\Programs\\Python\\Python312\\DLLs', 
'C:\\Users\\Yann\\AppData\\Local\\Programs\\Python\\Python312\\Lib', 
'C:\\Users\\Yann\\AppData\\Local\\Programs\\Python\\Python312', 
'C:\\Users\\Yann\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages']
 

Server time: 
Sun, 12 May 2024 13:03:44 + 
Template-loader postmortem 

Django tried loading these templates, in this order:

Using engine django:

   - django.template.loaders.filesystem.Loader: 
   
C:\Pwd-H2024\critiques_gastronomiques\critique_gastronomiques\templates\usagers\login.html
 
   (Source does not exist) 
   - django.template.loaders.filesystem.Loader: 
   
C:\Pwd-H2024\critiques_gastronomiques\restaurants\templates\usagers\login.html 
   (Source does not exist) 
   - django.template.loaders.app_directories.Loader: 
   
C:\Users\Yann\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\contrib\admin\templates\usagers\login.html
 
   (Source does not exist) 
   - django.template.loaders.app_directories.Loader: 
   
C:\Users\Yann\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\contrib\auth\templates\usagers\login.html
 
   (Source does not exist) 
   - django.template.loaders.app_directories.Loader: 
   
C:\Pwd-H2024\critiques_gastronomiques\restaurants\templates\usagers\login.html 
   (Source does not exist)
   - 
   

-- 
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/c2726951-bcb7-421f-9f5e-9562f726f564n%40googlegroups.com.


Django Model Image as background image in css

2024-05-11 Thread Paul Magadi
How do we use a model image as a background image for static css

-- 
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/985a602b-c154-4e91-ac65-f7da5d66adadn%40googlegroups.com.


Streamlining Model validation of ForeignKeys

2024-05-10 Thread Shaheed Haque
Hi,

I have two models Source and Input, where Input has an FK to Source like
this:

class Source(db_models.Model):
scheme = db_models.CharField(...)
path = db_models.CharField(...)
display_as = db_models.CharField(...)

class Input(db_models.Model):
name = db_models.CharField(...)
description = db_models.CharField(...)
type = db_models.CharField(...)
source = db_models.ForeignKey(Source, on_delete=db_models.CASCADE)
reuse = db_models.CharField(...)
value = db_models.CharField(...)

The instances of Source are statically created, and number 20 or so in
total. The instances of Input number in the millions, and may be loaded
from external files/network endpoints. When Input instances are created, we
perform normal Django validation processing, involving
form.is_valid()/form.errors. As we know, Django 5.x does something like:

   1. Form field validation using Form.clean_xxx().
   2. Form cross-field validation using Form.clean().
   3. Model validation, including validating the FK.

like this:

...
File "/.../django/forms/forms.py", line 197, in is_valid return
self.is_bound and not self.errors File "/.../django/forms/forms.py", line
192, in errors self.full_clean() File "/.../django/forms/forms.py", line
329, in full_clean self._post_clean() File "/.../django/forms/models.py",
line 496, in _post_clean self.instance.full_clean(exclude=exclude,
validate_unique=False) File "/.../django/db/models/base.py", line 1520, in
full_clean self.clean_fields(exclude=exclude) File
"/.../django/db/models/base.py", line 1572, in clean_fields setattr(self,
f.attname, f.clean(raw_value, self)) File
"/.../django/db/models/fields/__init__.py", line 830, in clean
self.validate(value, model_instance) File
"/.../django/db/models/fields/related.py", line 1093, in validate if not
qs.exists():
...

In one experiment, I observe that this results in 143k queries, taking a
total of 43s. Is there a way to short circuit this Model-level validation?
Since I know the ~20 instances of Source, even a cache of
Source.objects.all() would be a very cheap, but I cannot see any way to
inject that into the code for line 1093:

   def validate(self, value, model_instance):
   if self.remote_field.parent_link:
   return
   super().validate(value, model_instance)
   if value is None:
   return

   using = router.db_for_read(self.remote_field.model,
instance=model_instance)
   qs = self.remote_field.model._base_manager.using(using).filter(
 queryset created here
   **{self.remote_field.field_name: value}
   )
   qs = qs.complex_filter(self.get_limit_choices_to())
   if not qs.exists():
 queryset evaluated here, line 1093
   raise exceptions.ValidationError(...)

We actually have several versions of this problem so any ideas are welcome.

Thanks, Shaheed

-- 
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/CAHAc2jfzag7v6t7_pvbRnyJ-chMFHyjmkXsDkRouTg7JOteRfQ%40mail.gmail.com.


Re: Call for Testing: Connection Pooling PR for Django Oracle

2024-05-09 Thread Benjamini Athanas
thanks

On Mon, 6 May 2024 at 22:41, suraj shaw  wrote:

> Dear Django Users,
>
>
> I hope this email finds you well.
>
>
> We're reaching out to the Django community today with an exciting
> opportunity to test a significant enhancement for the Oracle database
> backend: connection pooling functionality.
>
>
> A pull request has been submitted that introduces connection pooling to
> Django's Oracle backend. This enhancement promises to bring notable
> improvements in performance and scalability, particularly for applications
> handling heavy database traffic.
>
> We're inviting members of the Django community to participate in testing
> this PR.
>
>
> Your feedback and testing are invaluable in ensuring the reliability,
> efficiency, and compatibility of this feature across various Django
> projects and environments. By participating, you not only contribute to the
> enhancement of Django but also ensure that this crucial functionality meets
> the diverse needs of our community.
>
>
> *How You Can Help:*
>
>1. *Testing*: Deploy the PR in your development or testing environment
>and run your Django applications with Oracle backend. Observe its behavior,
>performance, and compatibility with your existing codebase.
>2. *Bug Reporting*: If you encounter any issues, whether they're
>related to functionality, performance, or compatibility, please report them
>promptly. Detailed bug reports with steps to reproduce are immensely
>helpful for the developers.
>3. *Feedback*: Share your thoughts, suggestions, and experiences with
>the community. Your feedback will aid in refining and improving the feature
>before it's merged into the main Django codebase.
>
>
> Testing Environment - Use python-oracledb (thin mode)
>
> Link - https://python-oracledb.readthedocs.io/en/latest/index.html
>
>
> *PR Link:* https://github.com/django/django/pull/17834
>
>
> Your contributions to this testing effort will play a crucial role in
> expediting the merging process. We highly appreciate your time and effort
> in helping make Django even better.
>
>
>
> Thank you for your support and dedication to the Django community.
>
>
> Best regards,
>
> Suraj Kumar Shaw
>
> --
> 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/CAAUoqBHSZros2LGk9r2BeLYgm54LtCdTN_QURkGcTU-G9CFxwQ%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/CAPRT2e5FDk6MJf8X%3D_iFOUkcyPBP3Sc-%3DH4KpSRNtbDo-3%3DY%2Bg%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-05-09 Thread Hussain Ezzi
i am interested , with only 10 dollars per hour, i just want to hone my 
skills again

On Tuesday, May 7, 2024 at 2:22:56 PM UTC+5 Satyajit Barik wrote:

> I’m interested 
>
> On Sat, 4 May 2024 at 10:04 PM, Bethuel Thipe  wrote:
>
>> I am interested 
>>
>>
>> Sent from Yahoo Mail for iPad 
>> 
>>
>> On Friday, May 3, 2024, 3:15 PM, Raunak Ron  wrote:
>>
>> I am Interested.
>>
>> On Monday 29 April 2024 at 19:45:53 UTC+5:30 Pankaj Saini wrote:
>>
>> I am interested in this position.
>>
>> I have an experience in Django Development with strong Python.
>>
>> On Tue, Apr 2, 2024, 10:49 PM Abhishek J  
>> wrote:
>>
>> Dear Developers,
>>
>> I need to build an android and IOS phone dialer similar to Truecaller.
>>
>> We are seeking experienced and dedicated candidates who are proficient in 
>> Django and possess a keen interest in contributing to this impactful 
>> initiative.
>>
>> We look forward to the opportunity to collaborate with talented 
>> individuals who are passionate about creating innovative solutions in the 
>> education sector.
>>
>> Thank you for considering this opportunity.
>>
>> -- 
>>
>> 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...@googlegroups.com.
>>
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAKkngwDHBygGho4gkHRhNkpVJf_d2UOkHQ%3DemN3BtcFSVRU8sA%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...@googlegroups.com.
>> To view this discussion on the web visit 
>>
>> https://groups.google.com/d/msgid/django-users/b0b71507-abfb-4c45-8701-92ef9f972affn%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/1405926229.10663276.1714800213056%40mail.yahoo.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/348e9152-385d-45d9-af85-3c161b5e21afn%40googlegroups.com.


how to acheive this

2024-05-09 Thread malhaar mahapatro
I have scrpaded and saved attachment I want to send it to dashboard  of
iso,isto and irt and I want an option that they have seen that message or
not and what action taken I can see and then can send again to csirt
dashboard about action taken and csirt can send it to whom he wants how to
achieve in django from scratch using django

-- 
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/CAMgb%2BbF1F39ESJFYpKHgai5ugWK2A6c%3Dp-Bat52bNHYbJJV3%2BQ%40mail.gmail.com.


Django bugfix releases issued: 4.2.13 and 5.0.6

2024-05-07 Thread Natalia Bidart
Details are available on the Django project weblog:
https://www.djangoproject.com/weblog/2024/may/07/bugfix-releases/

-- 
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%2BfOnFbD3z%2B2BPPyfGi9rrSDTpehMCyHaj%3DoN_kx9bBx-oviKg%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-05-07 Thread Satyajit Barik
I’m interested

On Sat, 4 May 2024 at 10:04 PM, Bethuel Thipe 
wrote:

> I am interested
>
>
> Sent from Yahoo Mail for iPad
> 
>
> On Friday, May 3, 2024, 3:15 PM, Raunak Ron  wrote:
>
> I am Interested.
>
> On Monday 29 April 2024 at 19:45:53 UTC+5:30 Pankaj Saini wrote:
>
> I am interested in this position.
>
> I have an experience in Django Development with strong Python.
>
> On Tue, Apr 2, 2024, 10:49 PM Abhishek J 
> wrote:
>
> Dear Developers,
>
> I need to build an android and IOS phone dialer similar to Truecaller.
>
> We are seeking experienced and dedicated candidates who are proficient in
> Django and possess a keen interest in contributing to this impactful
> initiative.
>
> We look forward to the opportunity to collaborate with talented
> individuals who are passionate about creating innovative solutions in the
> education sector.
>
> Thank you for considering this opportunity.
>
> --
>
> 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...@googlegroups.com.
>
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKkngwDHBygGho4gkHRhNkpVJf_d2UOkHQ%3DemN3BtcFSVRU8sA%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/b0b71507-abfb-4c45-8701-92ef9f972affn%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/1405926229.10663276.1714800213056%40mail.yahoo.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/CANd-%2BoBKK8c83c%3Dz%2Bp%3DS8Yvem9Rm-a_3iMqd-49Ru%2B0PXxsW%3DA%40mail.gmail.com.


Django bugfix releases issued: 4.2.12 and 5.0.5

2024-05-06 Thread Sarah Boyce
Details are available on the Django project weblog:
https://www.djangoproject.com/weblog/2024/may/06/bugfix-releases/

-- 
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/CAN%2BfQHyT9xZmOm6CQxbo9jv99cQinJME3n8dBiJaS%3DVpvTJovw%40mail.gmail.com.


Call for Testing: Connection Pooling PR for Django Oracle

2024-05-06 Thread suraj shaw
Dear Django Users,


I hope this email finds you well.


We're reaching out to the Django community today with an exciting
opportunity to test a significant enhancement for the Oracle database
backend: connection pooling functionality.


A pull request has been submitted that introduces connection pooling to
Django's Oracle backend. This enhancement promises to bring notable
improvements in performance and scalability, particularly for applications
handling heavy database traffic.

We're inviting members of the Django community to participate in testing
this PR.


Your feedback and testing are invaluable in ensuring the reliability,
efficiency, and compatibility of this feature across various Django
projects and environments. By participating, you not only contribute to the
enhancement of Django but also ensure that this crucial functionality meets
the diverse needs of our community.


*How You Can Help:*

   1. *Testing*: Deploy the PR in your development or testing environment
   and run your Django applications with Oracle backend. Observe its behavior,
   performance, and compatibility with your existing codebase.
   2. *Bug Reporting*: If you encounter any issues, whether they're related
   to functionality, performance, or compatibility, please report them
   promptly. Detailed bug reports with steps to reproduce are immensely
   helpful for the developers.
   3. *Feedback*: Share your thoughts, suggestions, and experiences with
   the community. Your feedback will aid in refining and improving the feature
   before it's merged into the main Django codebase.


Testing Environment - Use python-oracledb (thin mode)

Link - https://python-oracledb.readthedocs.io/en/latest/index.html


*PR Link:* https://github.com/django/django/pull/17834


Your contributions to this testing effort will play a crucial role in
expediting the merging process. We highly appreciate your time and effort
in helping make Django even better.



Thank you for your support and dedication to the Django community.


Best regards,

Suraj Kumar Shaw

-- 
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/CAAUoqBHSZros2LGk9r2BeLYgm54LtCdTN_QURkGcTU-G9CFxwQ%40mail.gmail.com.


Re: E-comm live project

2024-05-06 Thread Dean Mahori
Add me
+263786881635

Sent from Outlook for Android

From: django-users@googlegroups.com  on behalf 
of amruth bitla 
Sent: Monday, May 6, 2024 6:23:52 PM
To: Django users 
Subject: Re: E-comm live project

Hi  1001_prabhjot Singh,

I am interested, check out my GitHuB Page for Django 
Project, Please Email me.

On Monday, May 6, 2024 at 12:13:13 PM UTC-4 avdesh sharma wrote:
I am interested, +91-9650031844

On Mon, Mar 18, 2024 at 10:56 PM 1001_prabhjot Singh  
wrote:
so i am working on a full stack e-comm website and this project is really very 
big for me because it's a live project am using django for backend interested 
one's can send there number for WhatsApp group

--
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1101d563-726a-458e-ad9f-4b91bebf3132n%40googlegroups.com.


--
Warm Regards,
Avdesh Kumar Sharma
9650031844

--
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/a84f1fdf-36de-4a79-b628-b2a50c576f3an%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/PAXP193MB2202C8F3EC53FC22B974B0D0FF1C2%40PAXP193MB2202.EURP193.PROD.OUTLOOK.COM.


Re: E-comm live project

2024-05-06 Thread amruth bitla
Hi  1001_prabhjot Singh, 

I am interested, check out my *GitHuB*  Page for 
*Django 
Project*, Please *Email*  me.

On Monday, May 6, 2024 at 12:13:13 PM UTC-4 avdesh sharma wrote:

> I am interested, +91-9650031844 <+91%2096500%2031844>
>
> On Mon, Mar 18, 2024 at 10:56 PM 1001_prabhjot Singh  
> wrote:
>
>> so i am working on a full stack e-comm website and this project is really 
>> very big for me because it's a live project am using django for backend 
>> interested one's can send there number for WhatsApp group  
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/1101d563-726a-458e-ad9f-4b91bebf3132n%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> Warm Regards,
> Avdesh Kumar Sharma
> 9650031844
>

-- 
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/a84f1fdf-36de-4a79-b628-b2a50c576f3an%40googlegroups.com.


Re: E-comm live project

2024-05-06 Thread avdesh sharma
I am interested, +91-9650031844

On Mon, Mar 18, 2024 at 10:56 PM 1001_prabhjot Singh <
prabhjotbal...@gmail.com> wrote:

> so i am working on a full stack e-comm website and this project is really
> very big for me because it's a live project am using django for backend
> interested one's can send there number for WhatsApp group
>
> --
> 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/1101d563-726a-458e-ad9f-4b91bebf3132n%40googlegroups.com
> 
> .
>


-- 
Warm Regards,
Avdesh Kumar Sharma
9650031844

-- 
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/CAF5Nfo6d%3DOi7ywzo8uYd5Zd5OzkdhbYoF4uEC-uspP5OZ0b0sg%40mail.gmail.com.


Re: E-comm live project.

2024-05-06 Thread Daouda Sagno
Salut,
Mon numéro WhatsApp est +2250749741167

Le lun. 6 mai 2024 à 13:14, ankit lodhi  a écrit :

>
> Hi there,
> I have worked on multi-vendor E-Commerce apps,
> e-comm apps and on e-mart apps.
> You can consider me.
>
> My WhatsApp no. : +919165805819
> On Monday, May 6, 2024 at 6:00:16 PM UTC+5:30 M.VIKRAMAN ROMAN_VIKI wrote:
>
>> Lets do this guys. This is my whatsapp number : *+919514531375
>> <+91%2095145%2031375>*
>>
>> On Monday 18 March, 2024 at 11:04:22 pm UTC+5:30 Sang wrote:
>>
>>> Looks interesting. I'm on WhatsApp @ 9937826218. Please let's catch up
>>> there.
>>>
>>
>>> On Mon, Mar 18, 2024, 22:56 1001_prabhjot Singh 
>>> wrote:
>>>
 so i am working on a full stack e-comm website and this project is
 really very big for me because it's a live project am using django for
 backend interested one's can send there number for WhatsApp group

 --
 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...@googlegroups.com.

>>> To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/1101d563-726a-458e-ad9f-4b91bebf3132n%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/722ffbfd-fcd4-49fd-b671-b8f536181643n%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/CAHOT321AoRPNmaWiNMn9bfRHOXwwyCnGUCvuYSsqJo_Tcaes9w%40mail.gmail.com.


Re: E-comm live project

2024-05-06 Thread Montego King
I'm a novice, and wish to follow and learn
whatsapp:+237651802010

On Monday, March 18, 2024 at 6:26:50 PM UTC+1 1001_prabhjot Singh wrote:

> so i am working on a full stack e-comm website and this project is really 
> very big for me because it's a live project am using django for backend 
> interested one's can send there number for WhatsApp group  
>

-- 
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/13a4b441-24d7-41c3-a8b1-61e00b4f457dn%40googlegroups.com.


Re: E-comm live project.

2024-05-06 Thread Ibrahim Olayiwola
+1 201 852 7823

On Monday, May 6, 2024 at 8:30:16 AM UTC-4 M.VIKRAMAN ROMAN_VIKI wrote:

> Lets do this guys. This is my whatsapp number : *+919514531375 
> <+91%2095145%2031375>*
>
> On Monday 18 March, 2024 at 11:04:22 pm UTC+5:30 Sang wrote:
>
>> Looks interesting. I'm on WhatsApp @ 9937826218. Please let's catch up 
>> there. 
>>
>
>> On Mon, Mar 18, 2024, 22:56 1001_prabhjot Singh  
>> wrote:
>>
>>> so i am working on a full stack e-comm website and this project is 
>>> really very big for me because it's a live project am using django for 
>>> backend interested one's can send there number for WhatsApp group  
>>>
>>> -- 
>>> 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...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/1101d563-726a-458e-ad9f-4b91bebf3132n%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/c171f588-7400-428e-bf4f-221e7f9e77c6n%40googlegroups.com.


Re: E-comm live project.

2024-05-06 Thread ankit lodhi

Hi there,
I have worked on multi-vendor E-Commerce apps,
e-comm apps and on e-mart apps.
You can consider me.

My WhatsApp no. : +919165805819
On Monday, May 6, 2024 at 6:00:16 PM UTC+5:30 M.VIKRAMAN ROMAN_VIKI wrote:

> Lets do this guys. This is my whatsapp number : *+919514531375 
> <+91%2095145%2031375>*
>
> On Monday 18 March, 2024 at 11:04:22 pm UTC+5:30 Sang wrote:
>
>> Looks interesting. I'm on WhatsApp @ 9937826218. Please let's catch up 
>> there. 
>>
>
>> On Mon, Mar 18, 2024, 22:56 1001_prabhjot Singh  
>> wrote:
>>
>>> so i am working on a full stack e-comm website and this project is 
>>> really very big for me because it's a live project am using django for 
>>> backend interested one's can send there number for WhatsApp group  
>>>
>>> -- 
>>> 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...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/1101d563-726a-458e-ad9f-4b91bebf3132n%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/722ffbfd-fcd4-49fd-b671-b8f536181643n%40googlegroups.com.


Re: E-comm live project.

2024-05-06 Thread M.VIKRAMAN ROMAN_VIKI
Lets do this guys. This is my whatsapp number : *+919514531375*

On Monday 18 March, 2024 at 11:04:22 pm UTC+5:30 Sang wrote:

> Looks interesting. I'm on WhatsApp @ 9937826218. Please let's catch up 
> there. 
>
> On Mon, Mar 18, 2024, 22:56 1001_prabhjot Singh  
> wrote:
>
>> so i am working on a full stack e-comm website and this project is really 
>> very big for me because it's a live project am using django for backend 
>> interested one's can send there number for WhatsApp group  
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/1101d563-726a-458e-ad9f-4b91bebf3132n%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/5cf1ad21-ff34-42d7-a438-88b9cfddaecdn%40googlegroups.com.


[no subject]

2024-05-05 Thread Dean Mahori
Dear Programmers,
My name is Dean Mahori and I'm a student at Chinhoyi University . I'm
working on a university project to build a website using the Django
framework.
I'm currently in the process of developing a website to better connect with
our community and raise awareness about our cause.  While I'm excited to
embark on this project, I'm also new to website development and could
really use some assistance.
I'm particularly interested in using Django, a Python web framework, to
build the website.  I've been doing some research on it and believe it
would be a good fit for our needs.  However, as a beginner, I would greatly
appreciate any guidance or support from experienced Django programmers. I'm
also open to different approaches and suggestions from experienced
programmers.

Here are some specific areas where I could use help:

Project Setup and Best Practices: Ensuring a solid foundation for the
website's development.
Understanding Django Features: Learning how to effectively utilize
Django functionalities for our website.
Building Core functionalities: Developing essential features like user
registration, content management, and potentially donation options.

I understand that volunteering your time is valuable, and I'm incredibly
grateful for any assistance you can offer.  Even if it's just pointing me
in the right direction with resources or tutorials, it would be immensely
helpful.
I'm happy to discuss the project further and answer any questions you may
have.  Please feel free to contact me at deanmah...@gmail.com or
+263786881635
You can also comment with your whatsapp number so that i can create a group
for all of us.

Thank you for your time and consideration.

-- 
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/CAOxCe%3DSQMWYKQzf4ODUVqEXqmZB%2BN1R%3DWvbZLNzxAzPa6F7k7A%40mail.gmail.com.


Re: E-comm live project

2024-05-04 Thread Samwel Omolo
Hi Dean,

I hope this message finds you well. I'm Samwel Omolo, and I came across
your request to be added to the WhatsApp group for the full stack e-comm
website project using Django for the backend. I'm definitely interested in
joining the group and contributing to the project.

Please add me to the WhatsApp group. You can reach me at +254745721005.

Looking forward to collaborating with you and the rest of the team on this
exciting project.

Best regards,
Samwel


On Sat, May 4, 2024 at 7:34 PM Dean Mahori  wrote:

> add me +263786881635
>
>
> On Tue, Apr 30, 2024 at 3:23 PM Kintu Peter  wrote:
>
>> Watsap +256789746493
>>
>>
>> On Monday, March 18, 2024 at 8:26:50 PM UTC+3 1001_prabhjot Singh wrote:
>>
>>> so i am working on a full stack e-comm website and this project is
>>> really very big for me because it's a live project am using django for
>>> backend interested one's can send there number for WhatsApp group
>>>
>> --
>> 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/133bfa88-4044-4bdc-9602-9c3a5ec276b7n%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/CAOxCe%3DS22%3DXqpQOP9gPAqTR4%2B1xHhMNoCacMMOsMPNa7Kvuhbw%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/CAJpp-5QytDuLfo%3DapRQKkDhBXjZAnt3TNGEhhtiK8HXx_y9ojw%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-05-04 Thread Bethuel Thipe
I am interested 


Sent from Yahoo Mail for iPad


On Friday, May 3, 2024, 3:15 PM, Raunak Ron  wrote:

I am Interested.
On Monday 29 April 2024 at 19:45:53 UTC+5:30 Pankaj Saini wrote:

I am interested in this position.
I have an experience in Django Development with strong Python.
On Tue, Apr 2, 2024, 10:49 PM Abhishek J  wrote:

Dear Developers,

I need to build an android and IOS phone dialer similar to Truecaller.
We are seeking experienced and dedicated candidates who are proficient in 
Django and possess a keen interest in contributing to this impactful initiative.

We look forward to the opportunity to collaborate with talented individuals who 
are passionate about creating innovative solutions in the education sector.

Thank you for considering this opportunity.




-- 


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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKkngwDHBygGho4gkHRhNkpVJf_d2UOkHQ%3DemN3BtcFSVRU8sA%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/b0b71507-abfb-4c45-8701-92ef9f972affn%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/1405926229.10663276.1714800213056%40mail.yahoo.com.


Re: E-comm live project

2024-05-04 Thread Dean Mahori
add me +263786881635


On Tue, Apr 30, 2024 at 3:23 PM Kintu Peter  wrote:

> Watsap +256789746493
>
>
> On Monday, March 18, 2024 at 8:26:50 PM UTC+3 1001_prabhjot Singh wrote:
>
>> so i am working on a full stack e-comm website and this project is really
>> very big for me because it's a live project am using django for backend
>> interested one's can send there number for WhatsApp group
>>
> --
> 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/133bfa88-4044-4bdc-9602-9c3a5ec276b7n%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/CAOxCe%3DS22%3DXqpQOP9gPAqTR4%2B1xHhMNoCacMMOsMPNa7Kvuhbw%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-05-03 Thread Raunak Ron
I am Interested.

On Monday 29 April 2024 at 19:45:53 UTC+5:30 Pankaj Saini wrote:

> I am interested in this position.
>
> I have an experience in Django Development with strong Python.
>
> On Tue, Apr 2, 2024, 10:49 PM Abhishek J  
> wrote:
>
>> Dear Developers,
>>
>> I need to build an android and IOS phone dialer similar to Truecaller.
>>
>> We are seeking experienced and dedicated candidates who are proficient in 
>> Django and possess a keen interest in contributing to this impactful 
>> initiative.
>>
>> We look forward to the opportunity to collaborate with talented 
>> individuals who are passionate about creating innovative solutions in the 
>> education sector.
>>
>> Thank you for considering this opportunity.
>>
>> -- 
>>
> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAKkngwDHBygGho4gkHRhNkpVJf_d2UOkHQ%3DemN3BtcFSVRU8sA%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/b0b71507-abfb-4c45-8701-92ef9f972affn%40googlegroups.com.


Newbie

2024-05-03 Thread Cindy Pearl Soriano
Hello everyone, can somebody help how to make an interactive site sor 
logging system?
-- 
---*DISCLAIMER AND CONFIDENTIALITY NOTICE* The Mindanao State 
University-Iligan Institute of Technology  
(MSU-IIT) makes no warranties of any kind, whether expressed or implied, 
with respect to the MSU-IIT e-mail resources it provides. MSU-IIT will not 
be responsible for damages resulting from the use of MSU-IIT e-mail 
resources, including, but not limited to, loss of data resulting from 
delays, non-deliveries, missed deliveries, service interruptions caused by 
the negligence of a MSU-IIT employee, or by the User's error or omissions. 
MSU-IIT specifically denies any responsibility for the accuracy or quality 
of information obtained through MSU-IIT e-mail resources, except material 
represented as an official MSU-IIT record. Any views expressed in this 
e-mail are those of the individual sender and may not necessarily reflect 
the views of MSU-IIT, except where the message states otherwise and the 
sender is authorized to state them to be the views of MSU-IIT. The 
information contained in this e-mail, including those in its attachments, 
is confidential and intended only for the person(s) or entity(ies) to which 
it is addressed. If you are not an intended recipient, you must not read, 
copy, store, disclose, distribute this message, or act in reliance upon the 
information contained in it. If you received this e-mail in error, please 
contact the sender and delete the material from any computer or system.

-- 
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/5b767106-50e4-42fa-9156-b904921c4e8bn%40googlegroups.com.


Re: Displaying contrast of a queryset

2024-05-03 Thread Abdou KARAMBIZI
ThanksKelvin Macharia

Now it is working properly

On Wed, May 1, 2024 at 9:24 PM Kelvin Macharia 
wrote:

> Actually:
> Query for tasks without relations to Product
>
> tasks = Task.objects.filter(product__isnull=True)
>
> after setting product field optional in as follows:
>
> product = models.ForeignKey(Product, on_delete=models.CASCADE, null=True,
> blank=True)
>
> On Wednesday, May 1, 2024 at 4:59:46 PM UTC+3 Ryan Nowakowski wrote:
>
>> Products.objects.filter(task_set__isnull=True)
>>
>>
>> On April 28, 2024 8:57:57 AM CDT, manohar chundru <
>> chundrumanoh...@gmail.com> wrote:
>>
>>> print(p)
>>>
>>> On Sun, Apr 28, 2024 at 12:25 AM Abdou KARAMBIZI 
>>> wrote:
>>>
 Hello friends,

 products = Task.objects.select_related().all()
 for p in products:
 print(p.product.product_name)

 This gives product that has relation in Task model but *I need product
 which doesn't have relation in Task *

 *Means we have products have relations in Task model and others with no
 relation in Task model and I need a queryset to display those with no
 relations in Task *




 On Sat, Apr 27, 2024 at 4:57 PM Kelvin Macharia 
 wrote:

> Before I share my thoughts here is a question for you. Where do you
> expect your product to be printed out?
>
> Here is what I think you should try out.
>
> First, the source code looks correct to me. Your view only get
> triggered when you access the routes(url) pointing to this view via the
> browser and this doesn't rerun server to print result on your console so
> you won't see anything get printed on the console. I presume you could be
> thinking of running a django app like you do with ordinary python scripts,
> your right but django is a python framework which requires specifics
> configurations to get results.
>
> To test your code and see products get printed out try this:
>
> 1. Use a template. Modify your view as follows:
>
> def product_task(request):
> products = Task.objects.select_related().all()
> context = {'products': products}
>
> return render(request, 'product-task.html', context)
>
> Create the template, configure routes in urls.py to point to this view
> and access through browser. Remember to add dummy data in your db
>
> 2. To print out your products using a for loop, use the django shell
> using '*python manage.py shell*'
>
> e.g.
> (.venv)
> python manage.py shell
> Python 3.12.2 (tags/v3.12.2:6abddd9, Feb  6 2024, 21:26:36) [MSC
> v.1937 64 bit (AMD64)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> (InteractiveConsole)
> >>> from stores.models import Task, Product
> >>> products = Task.objects.select_related().all()
> >>> for p in products:
> ... print(p.product.product_name)
> ...
> Coffee
> Banana Bread
>
> Note:
> 1. Stores refers to a dummy app I have created to host models.py.
> 2. Coffee and Banana Bread are just products I have added as dummy
> data.
>
> Hopes this help or atleast gives a guide somehow
>
> On Friday, April 26, 2024 at 5:22:26 PM UTC+3 Muhammad Juwaini Abdul
> Rahman wrote:
>
>> You're looking for `product`, but the model that you queried is
>> `Task`.
>>
>> On Fri, 26 Apr 2024 at 17:40, Abdou KARAMBIZI 
>> wrote:
>>
>>> Hello,
>>> *I have 2 models :*
>>>
>>> class Product(models.Model):
>>> product_id = models.AutoField(primary_key=True)
>>> product_name = models.CharField(max_length=200)
>>> price = models.IntegerField()
>>> image =
>>> models.ImageField(upload_to='images/products_images/',null=True,blank=True)
>>>
>>>
>>> def __str__(self):
>>> return self.product_name
>>>
>>>
>>> class Task(models.Model):
>>> task_id = models.AutoField(primary_key=True)
>>> user = models.ForeignKey(User,on_delete = models.CASCADE)
>>> product = models.ForeignKey(Product,on_delete=models.CASCADE)
>>> performed_at = models.DateTimeField(auto_now_add=True)
>>>
>>> def __int__(self):
>>> return self.task_id
>>>
>>> *and I have following view with queryset  :*
>>>
>>> def product_task (request):
>>> product = Task.objects.select_related().all()
>>> for p in product:
>>> print(p.product.product_name)
>>>
>>>
>>> *I want to get products don't appear in task model*
>>>
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> 

Re: Displaying contrast of a queryset

2024-05-01 Thread Kelvin Macharia
Actually:
Query for tasks without relations to Product

tasks = Task.objects.filter(product__isnull=True)

after setting product field optional in as follows:

product = models.ForeignKey(Product, on_delete=models.CASCADE, null=True, 
blank=True)

On Wednesday, May 1, 2024 at 4:59:46 PM UTC+3 Ryan Nowakowski wrote:

> Products.objects.filter(task_set__isnull=True)
>
>
> On April 28, 2024 8:57:57 AM CDT, manohar chundru <
> chundrumanoh...@gmail.com> wrote:
>
>> print(p)
>>
>> On Sun, Apr 28, 2024 at 12:25 AM Abdou KARAMBIZI  
>> wrote:
>>
>>> Hello friends,
>>>
>>> products = Task.objects.select_related().all()
>>> for p in products:  
>>> print(p.product.product_name)
>>>
>>> This gives product that has relation in Task model but *I need product 
>>> which doesn't have relation in Task *
>>>
>>> *Means we have products have relations in Task model and others with no 
>>> relation in Task model and I need a queryset to display those with no 
>>> relations in Task *
>>>
>>>
>>>
>>>
>>> On Sat, Apr 27, 2024 at 4:57 PM Kelvin Macharia  
>>> wrote:
>>>
 Before I share my thoughts here is a question for you. Where do you 
 expect your product to be printed out? 

 Here is what I think you should try out.

 First, the source code looks correct to me. Your view only get 
 triggered when you access the routes(url) pointing to this view via the 
 browser and this doesn't rerun server to print result on your console so 
 you won't see anything get printed on the console. I presume you could be 
 thinking of running a django app like you do with ordinary python scripts, 
 your right but django is a python framework which requires specifics 
 configurations to get results.

 To test your code and see products get printed out try this:

 1. Use a template. Modify your view as follows:

 def product_task(request):
 products = Task.objects.select_related().all()
 context = {'products': products}

 return render(request, 'product-task.html', context)

 Create the template, configure routes in urls.py to point to this view 
 and access through browser. Remember to add dummy data in your db

 2. To print out your products using a for loop, use the django shell 
 using '*python manage.py shell*'

 e.g.
 (.venv) 
 python manage.py shell
 Python 3.12.2 (tags/v3.12.2:6abddd9, Feb  6 2024, 21:26:36) [MSC v.1937 
 64 bit (AMD64)] on win32
 Type "help", "copyright", "credits" or "license" for more information.
 (InteractiveConsole)
 >>> from stores.models import Task, Product 
 >>> products = Task.objects.select_related().all()
 >>> for p in products:   
 ... print(p.product.product_name)
 ... 
 Coffee
 Banana Bread

 Note: 
 1. Stores refers to a dummy app I have created to host models.py. 
 2. Coffee and Banana Bread are just products I have added as dummy data.

 Hopes this help or atleast gives a guide somehow

 On Friday, April 26, 2024 at 5:22:26 PM UTC+3 Muhammad Juwaini Abdul 
 Rahman wrote:

> You're looking for `product`, but the model that you queried is `Task`.
>
> On Fri, 26 Apr 2024 at 17:40, Abdou KARAMBIZI  
> wrote:
>
>> Hello,
>> *I have 2 models :*
>>
>> class Product(models.Model):
>> product_id = models.AutoField(primary_key=True)
>> product_name = models.CharField(max_length=200)
>> price = models.IntegerField()
>> image = 
>> models.ImageField(upload_to='images/products_images/',null=True,blank=True)
>>   
>>
>> def __str__(self):
>> return self.product_name
>> 
>>
>> class Task(models.Model):
>> task_id = models.AutoField(primary_key=True)
>> user = models.ForeignKey(User,on_delete = models.CASCADE)
>> product = models.ForeignKey(Product,on_delete=models.CASCADE)
>> performed_at = models.DateTimeField(auto_now_add=True)
>>
>> def __int__(self):
>> return self.task_id
>>
>> *and I have following view with queryset  :*
>>
>> def product_task (request):
>> product = Task.objects.select_related().all()
>> for p in product:
>> print(p.product.product_name)
>>
>>
>> *I want to get products don't appear in task model*
>>
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CABnE44ztqCOVMkfDXHMVDAA0b3DpiyuSDKbQw7SNR9ybUvVLhA%40mail.gmail.com
>>  
>> 

Re: Displaying contrast of a queryset

2024-05-01 Thread Kelvin Macharia
Hi  Abdou KARAMBIZI,

Have you tried to make the product field in the Task model optional?

Like:

product = models.ForeignKey(Product, on_delete=models.CASCADE, null=True, 
blank=True)

On Saturday, April 27, 2024 at 9:55:56 PM UTC+3 Abdou KARAMBIZI wrote:

> Hello friends,
>
> products = Task.objects.select_related().all()
> for p in products:  
> print(p.product.product_name)
>
> This gives product that has relation in Task model but *I need product 
> which doesn't have relation in Task *
>
> *Means we have products have relations in Task model and others with no 
> relation in Task model and I need a queryset to display those with no 
> relations in Task *
>
>
>
>
> On Sat, Apr 27, 2024 at 4:57 PM Kelvin Macharia  
> wrote:
>
>> Before I share my thoughts here is a question for you. Where do you 
>> expect your product to be printed out? 
>>
>> Here is what I think you should try out.
>>
>> First, the source code looks correct to me. Your view only get triggered 
>> when you access the routes(url) pointing to this view via the browser and 
>> this doesn't rerun server to print result on your console so you won't see 
>> anything get printed on the console. I presume you could be thinking of 
>> running a django app like you do with ordinary python scripts, your right 
>> but django is a python framework which requires specifics configurations to 
>> get results.
>>
>> To test your code and see products get printed out try this:
>>
>> 1. Use a template. Modify your view as follows:
>>
>> def product_task(request):
>> products = Task.objects.select_related().all()
>> context = {'products': products}
>>
>> return render(request, 'product-task.html', context)
>>
>> Create the template, configure routes in urls.py to point to this view 
>> and access through browser. Remember to add dummy data in your db
>>
>> 2. To print out your products using a for loop, use the django shell 
>> using '*python manage.py shell*'
>>
>> e.g.
>> (.venv) 
>> python manage.py shell
>> Python 3.12.2 (tags/v3.12.2:6abddd9, Feb  6 2024, 21:26:36) [MSC v.1937 
>> 64 bit (AMD64)] on win32
>> Type "help", "copyright", "credits" or "license" for more information.
>> (InteractiveConsole)
>> >>> from stores.models import Task, Product 
>> >>> products = Task.objects.select_related().all()
>> >>> for p in products:   
>> ... print(p.product.product_name)
>> ... 
>> Coffee
>> Banana Bread
>>
>> Note: 
>> 1. Stores refers to a dummy app I have created to host models.py. 
>> 2. Coffee and Banana Bread are just products I have added as dummy data.
>>
>> Hopes this help or atleast gives a guide somehow
>>
>> On Friday, April 26, 2024 at 5:22:26 PM UTC+3 Muhammad Juwaini Abdul 
>> Rahman wrote:
>>
>>> You're looking for `product`, but the model that you queried is `Task`.
>>>
>>> On Fri, 26 Apr 2024 at 17:40, Abdou KARAMBIZI  
>>> wrote:
>>>
 Hello,
 *I have 2 models :*

 class Product(models.Model):
 product_id = models.AutoField(primary_key=True)
 product_name = models.CharField(max_length=200)
 price = models.IntegerField()
 image = 
 models.ImageField(upload_to='images/products_images/',null=True,blank=True)
   

 def __str__(self):
 return self.product_name
 

 class Task(models.Model):
 task_id = models.AutoField(primary_key=True)
 user = models.ForeignKey(User,on_delete = models.CASCADE)
 product = models.ForeignKey(Product,on_delete=models.CASCADE)
 performed_at = models.DateTimeField(auto_now_add=True)

 def __int__(self):
 return self.task_id

 *and I have following view with queryset  :*

 def product_task (request):
 product = Task.objects.select_related().all()
 for p in product:
 print(p.product.product_name)


 *I want to get products don't appear in task model*


 -- 
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/CABnE44ztqCOVMkfDXHMVDAA0b3DpiyuSDKbQw7SNR9ybUvVLhA%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/4d216a44-5a21-4f3d-aae5-c02553561074n%40googlegroups.com
>>  
>> 

Lookin for Internship opportunity (Django, React)

2024-04-30 Thread Ricky Kristian
Hi, I'm looking for internship as a full stack engineer.

My tech stack is, Django Rest Framework, React.Js, SQL, MySQL, Tailwind 
CSS, CSS, HTML
You may check my current live project:

https://workmatch.rickykristianbutarbutar.com

github:
Your Repositories (github.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/92899c16-fb2b-458e-b755-a344729c8094n%40googlegroups.com.


Re: E-comm live project

2024-04-30 Thread Kintu Peter
Watsap +256789746493


On Monday, March 18, 2024 at 8:26:50 PM UTC+3 1001_prabhjot Singh wrote:

> so i am working on a full stack e-comm website and this project is really 
> very big for me because it's a live project am using django for backend 
> interested one's can send there number for WhatsApp group  
>

-- 
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/133bfa88-4044-4bdc-9602-9c3a5ec276b7n%40googlegroups.com.


Re: E-comm live project

2024-04-30 Thread FIRDOUS BHAT
HI there,
I've worked on multi-vendor E-Commerce apps,
EdTech apps and on Real Estate apps.
You can consider me.

My WhatsApp no. : +918553332955

On Tue, Apr 30, 2024 at 4:03 PM shubham joshi 
wrote:

> Hello @prabhjotbal...@gmail.com  and team,
>
> Please consider me for e-comm project
> +91 8390246938 is my whpp number
>
>
>
> Thanks,
> shubham
> --
> *From:* django-users@googlegroups.com  on
> behalf of 1001_prabhjot Singh 
> *Sent:* Monday, March 18, 2024 10:45 PM
> *To:* Django users 
> *Subject:* E-comm live project
>
> so i am working on a full stack e-comm website and this project is really
> very big for me because it's a live project am using django for backend
> interested one's can send there number for WhatsApp group
>
> --
> 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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/PA6PR02MB10563542210EEEF5E72D7EDA7FA1A2%40PA6PR02MB10563.eurprd02.prod.outlook.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/CAFB6YJrNz5FzFKbJ0ntsSHfmj4Ca6%3DuzuFzE0cm8VxXZsE9Vkw%40mail.gmail.com.


Re: E-comm live project

2024-04-30 Thread shubham joshi
Hello @prabhjotbal...@gmail.com and team,

Please consider me for e-comm project
+91 8390246938 is my whpp number



Thanks,
shubham

From: django-users@googlegroups.com  on behalf 
of 1001_prabhjot Singh 
Sent: Monday, March 18, 2024 10:45 PM
To: Django users 
Subject: E-comm live project

so i am working on a full stack e-comm website and this project is really very 
big for me because it's a live project am using django for backend interested 
one's can send there number for WhatsApp group

--
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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/PA6PR02MB10563542210EEEF5E72D7EDA7FA1A2%40PA6PR02MB10563.eurprd02.prod.outlook.com.


Re: E-comm live project

2024-04-30 Thread shubham joshi

+91 8390246938

From: django-users@googlegroups.com  on behalf 
of 1001_prabhjot Singh 
Sent: Monday, March 18, 2024 10:45 PM
To: Django users 
Subject: E-comm live project

so i am working on a full stack e-comm website and this project is really very 
big for me because it's a live project am using django for backend interested 
one's can send there number for WhatsApp group

--
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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/PA6PR02MB105632690565185A90842E807FA1A2%40PA6PR02MB10563.eurprd02.prod.outlook.com.


Re: E-comm live project

2024-04-29 Thread kumbhaj shukla
Looking for remote opportunities, anyone is there who have link or looking
for a co founder>.
Mail are always open just write your proposal , and let's build something
and make some impact with similar thought.kumbha...@gmail.com


*Best regards,*
*Kumbhaj shukla*
https://www.linkedin.com/in/kumbhaj/


On Mon, 29 Apr 2024 at 19:54, rahul sharma  wrote:

> 7899403562
>
> On Mon, Apr 29, 2024, 19:45 Pankaj Saini 
> wrote:
>
>> Please share WhatsApp Group Link.
>>
>> On Mon, Mar 18, 2024, 10:56 PM 1001_prabhjot Singh <
>> prabhjotbal...@gmail.com> wrote:
>>
>>> so i am working on a full stack e-comm website and this project is
>>> really very big for me because it's a live project am using django for
>>> backend interested one's can send there number for WhatsApp group
>>>
>>> --
>>> 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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/CAG2-KSOVN8eNaK9coRa-n0ZBhYMRUqMUuh2h_1fH2W-i15fFRQ%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/CACvpWirsi%2BRWLYJ%3Dmon0XK%3D7moT_mAKNnFWcsZMbS%2BrTeTvUfg%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/CAPjc%3DUViXfv3PQO0%3DVKa3f6Ta%3D-gwzmGTTyLVx08uKPYqJLDPw%40mail.gmail.com.


Re: E-comm live project

2024-04-29 Thread rahul sharma
7899403562

On Mon, Apr 29, 2024, 19:45 Pankaj Saini  wrote:

> Please share WhatsApp Group Link.
>
> On Mon, Mar 18, 2024, 10:56 PM 1001_prabhjot Singh <
> prabhjotbal...@gmail.com> wrote:
>
>> so i am working on a full stack e-comm website and this project is really
>> very big for me because it's a live project am using django for backend
>> interested one's can send there number for WhatsApp group
>>
>> --
>> 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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/CAG2-KSOVN8eNaK9coRa-n0ZBhYMRUqMUuh2h_1fH2W-i15fFRQ%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/CACvpWirsi%2BRWLYJ%3Dmon0XK%3D7moT_mAKNnFWcsZMbS%2BrTeTvUfg%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-04-29 Thread Pankaj Saini
I am interested in this position.

I have an experience in Django Development with strong Python.

On Tue, Apr 2, 2024, 10:49 PM Abhishek J 
wrote:

> Dear Developers,
>
> I need to build an android and IOS phone dialer similar to Truecaller.
>
> We are seeking experienced and dedicated candidates who are proficient in
> Django and possess a keen interest in contributing to this impactful
> initiative.
>
> We look forward to the opportunity to collaborate with talented
> individuals who are passionate about creating innovative solutions in the
> education sector.
>
> Thank you for considering this opportunity.
>
> --
> 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/CAKkngwDHBygGho4gkHRhNkpVJf_d2UOkHQ%3DemN3BtcFSVRU8sA%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/CAG2-KSPujUv9HANXppeT0063Tb%2BmMTk0K4gJ0LCjSsX_9Krn_Q%40mail.gmail.com.


Re: E-comm live project

2024-04-29 Thread Pankaj Saini
Please share WhatsApp Group Link.

On Mon, Mar 18, 2024, 10:56 PM 1001_prabhjot Singh 
wrote:

> so i am working on a full stack e-comm website and this project is really
> very big for me because it's a live project am using django for backend
> interested one's can send there number for WhatsApp group
>
> --
> 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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/CAG2-KSOVN8eNaK9coRa-n0ZBhYMRUqMUuh2h_1fH2W-i15fFRQ%40mail.gmail.com.


Re: Displaying contrast of a queryset

2024-04-28 Thread manohar chundru
print(p)

On Sun, Apr 28, 2024 at 12:25 AM Abdou KARAMBIZI 
wrote:

> Hello friends,
>
> products = Task.objects.select_related().all()
> for p in products:
> print(p.product.product_name)
>
> This gives product that has relation in Task model but *I need product
> which doesn't have relation in Task *
>
> *Means we have products have relations in Task model and others with no
> relation in Task model and I need a queryset to display those with no
> relations in Task *
>
>
>
>
> On Sat, Apr 27, 2024 at 4:57 PM Kelvin Macharia 
> wrote:
>
>> Before I share my thoughts here is a question for you. Where do you
>> expect your product to be printed out?
>>
>> Here is what I think you should try out.
>>
>> First, the source code looks correct to me. Your view only get triggered
>> when you access the routes(url) pointing to this view via the browser and
>> this doesn't rerun server to print result on your console so you won't see
>> anything get printed on the console. I presume you could be thinking of
>> running a django app like you do with ordinary python scripts, your right
>> but django is a python framework which requires specifics configurations to
>> get results.
>>
>> To test your code and see products get printed out try this:
>>
>> 1. Use a template. Modify your view as follows:
>>
>> def product_task(request):
>> products = Task.objects.select_related().all()
>> context = {'products': products}
>>
>> return render(request, 'product-task.html', context)
>>
>> Create the template, configure routes in urls.py to point to this view
>> and access through browser. Remember to add dummy data in your db
>>
>> 2. To print out your products using a for loop, use the django shell
>> using '*python manage.py shell*'
>>
>> e.g.
>> (.venv)
>> python manage.py shell
>> Python 3.12.2 (tags/v3.12.2:6abddd9, Feb  6 2024, 21:26:36) [MSC v.1937
>> 64 bit (AMD64)] on win32
>> Type "help", "copyright", "credits" or "license" for more information.
>> (InteractiveConsole)
>> >>> from stores.models import Task, Product
>> >>> products = Task.objects.select_related().all()
>> >>> for p in products:
>> ... print(p.product.product_name)
>> ...
>> Coffee
>> Banana Bread
>>
>> Note:
>> 1. Stores refers to a dummy app I have created to host models.py.
>> 2. Coffee and Banana Bread are just products I have added as dummy data.
>>
>> Hopes this help or atleast gives a guide somehow
>>
>> On Friday, April 26, 2024 at 5:22:26 PM UTC+3 Muhammad Juwaini Abdul
>> Rahman wrote:
>>
>>> You're looking for `product`, but the model that you queried is `Task`.
>>>
>>> On Fri, 26 Apr 2024 at 17:40, Abdou KARAMBIZI 
>>> wrote:
>>>
 Hello,
 *I have 2 models :*

 class Product(models.Model):
 product_id = models.AutoField(primary_key=True)
 product_name = models.CharField(max_length=200)
 price = models.IntegerField()
 image =
 models.ImageField(upload_to='images/products_images/',null=True,blank=True)


 def __str__(self):
 return self.product_name


 class Task(models.Model):
 task_id = models.AutoField(primary_key=True)
 user = models.ForeignKey(User,on_delete = models.CASCADE)
 product = models.ForeignKey(Product,on_delete=models.CASCADE)
 performed_at = models.DateTimeField(auto_now_add=True)

 def __int__(self):
 return self.task_id

 *and I have following view with queryset  :*

 def product_task (request):
 product = Task.objects.select_related().all()
 for p in product:
 print(p.product.product_name)


 *I want to get products don't appear in task model*


 --
 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...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CABnE44ztqCOVMkfDXHMVDAA0b3DpiyuSDKbQw7SNR9ybUvVLhA%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/4d216a44-5a21-4f3d-aae5-c02553561074n%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 

Re: Displaying contrast of a queryset

2024-04-27 Thread Abdou KARAMBIZI
Hello friends,

products = Task.objects.select_related().all()
for p in products:
print(p.product.product_name)

This gives product that has relation in Task model but *I need product
which doesn't have relation in Task *

*Means we have products have relations in Task model and others with no
relation in Task model and I need a queryset to display those with no
relations in Task *




On Sat, Apr 27, 2024 at 4:57 PM Kelvin Macharia 
wrote:

> Before I share my thoughts here is a question for you. Where do you expect
> your product to be printed out?
>
> Here is what I think you should try out.
>
> First, the source code looks correct to me. Your view only get triggered
> when you access the routes(url) pointing to this view via the browser and
> this doesn't rerun server to print result on your console so you won't see
> anything get printed on the console. I presume you could be thinking of
> running a django app like you do with ordinary python scripts, your right
> but django is a python framework which requires specifics configurations to
> get results.
>
> To test your code and see products get printed out try this:
>
> 1. Use a template. Modify your view as follows:
>
> def product_task(request):
> products = Task.objects.select_related().all()
> context = {'products': products}
>
> return render(request, 'product-task.html', context)
>
> Create the template, configure routes in urls.py to point to this view and
> access through browser. Remember to add dummy data in your db
>
> 2. To print out your products using a for loop, use the django shell using
> '*python manage.py shell*'
>
> e.g.
> (.venv)
> python manage.py shell
> Python 3.12.2 (tags/v3.12.2:6abddd9, Feb  6 2024, 21:26:36) [MSC v.1937 64
> bit (AMD64)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> (InteractiveConsole)
> >>> from stores.models import Task, Product
> >>> products = Task.objects.select_related().all()
> >>> for p in products:
> ... print(p.product.product_name)
> ...
> Coffee
> Banana Bread
>
> Note:
> 1. Stores refers to a dummy app I have created to host models.py.
> 2. Coffee and Banana Bread are just products I have added as dummy data.
>
> Hopes this help or atleast gives a guide somehow
>
> On Friday, April 26, 2024 at 5:22:26 PM UTC+3 Muhammad Juwaini Abdul
> Rahman wrote:
>
>> You're looking for `product`, but the model that you queried is `Task`.
>>
>> On Fri, 26 Apr 2024 at 17:40, Abdou KARAMBIZI 
>> wrote:
>>
>>> Hello,
>>> *I have 2 models :*
>>>
>>> class Product(models.Model):
>>> product_id = models.AutoField(primary_key=True)
>>> product_name = models.CharField(max_length=200)
>>> price = models.IntegerField()
>>> image =
>>> models.ImageField(upload_to='images/products_images/',null=True,blank=True)
>>>
>>>
>>> def __str__(self):
>>> return self.product_name
>>>
>>>
>>> class Task(models.Model):
>>> task_id = models.AutoField(primary_key=True)
>>> user = models.ForeignKey(User,on_delete = models.CASCADE)
>>> product = models.ForeignKey(Product,on_delete=models.CASCADE)
>>> performed_at = models.DateTimeField(auto_now_add=True)
>>>
>>> def __int__(self):
>>> return self.task_id
>>>
>>> *and I have following view with queryset  :*
>>>
>>> def product_task (request):
>>> product = Task.objects.select_related().all()
>>> for p in product:
>>> print(p.product.product_name)
>>>
>>>
>>> *I want to get products don't appear in task model*
>>>
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CABnE44ztqCOVMkfDXHMVDAA0b3DpiyuSDKbQw7SNR9ybUvVLhA%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/4d216a44-5a21-4f3d-aae5-c02553561074n%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/CABnE44yO89B2srRGoyzoFgXUbpPSki-mxamXo4GwGYs4zMGugA%40mail.gmail.com.


Re: Displaying contrast of a queryset

2024-04-27 Thread Kelvin Macharia
Before I share my thoughts here is a question for you. Where do you expect 
your product to be printed out? 

Here is what I think you should try out.

First, the source code looks correct to me. Your view only get triggered 
when you access the routes(url) pointing to this view via the browser and 
this doesn't rerun server to print result on your console so you won't see 
anything get printed on the console. I presume you could be thinking of 
running a django app like you do with ordinary python scripts, your right 
but django is a python framework which requires specifics configurations to 
get results.

To test your code and see products get printed out try this:

1. Use a template. Modify your view as follows:

def product_task(request):
products = Task.objects.select_related().all()
context = {'products': products}

return render(request, 'product-task.html', context)

Create the template, configure routes in urls.py to point to this view and 
access through browser. Remember to add dummy data in your db

2. To print out your products using a for loop, use the django shell using 
'*python 
manage.py shell*'

e.g.
(.venv) 
python manage.py shell
Python 3.12.2 (tags/v3.12.2:6abddd9, Feb  6 2024, 21:26:36) [MSC v.1937 64 
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from stores.models import Task, Product 
>>> products = Task.objects.select_related().all()
>>> for p in products:   
... print(p.product.product_name)
... 
Coffee
Banana Bread

Note: 
1. Stores refers to a dummy app I have created to host models.py. 
2. Coffee and Banana Bread are just products I have added as dummy data.

Hopes this help or atleast gives a guide somehow

On Friday, April 26, 2024 at 5:22:26 PM UTC+3 Muhammad Juwaini Abdul Rahman 
wrote:

> You're looking for `product`, but the model that you queried is `Task`.
>
> On Fri, 26 Apr 2024 at 17:40, Abdou KARAMBIZI  
> wrote:
>
>> Hello,
>> *I have 2 models :*
>>
>> class Product(models.Model):
>> product_id = models.AutoField(primary_key=True)
>> product_name = models.CharField(max_length=200)
>> price = models.IntegerField()
>> image = 
>> models.ImageField(upload_to='images/products_images/',null=True,blank=True)
>>   
>>
>> def __str__(self):
>> return self.product_name
>> 
>>
>> class Task(models.Model):
>> task_id = models.AutoField(primary_key=True)
>> user = models.ForeignKey(User,on_delete = models.CASCADE)
>> product = models.ForeignKey(Product,on_delete=models.CASCADE)
>> performed_at = models.DateTimeField(auto_now_add=True)
>>
>> def __int__(self):
>> return self.task_id
>>
>> *and I have following view with queryset  :*
>>
>> def product_task (request):
>> product = Task.objects.select_related().all()
>> for p in product:
>> print(p.product.product_name)
>>
>>
>> *I want to get products don't appear in task model*
>>
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CABnE44ztqCOVMkfDXHMVDAA0b3DpiyuSDKbQw7SNR9ybUvVLhA%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/4d216a44-5a21-4f3d-aae5-c02553561074n%40googlegroups.com.


Re: Displaying contrast of a queryset

2024-04-26 Thread Muhammad Juwaini Abdul Rahman
You're looking for `product`, but the model that you queried is `Task`.

On Fri, 26 Apr 2024 at 17:40, Abdou KARAMBIZI 
wrote:

> Hello,
> *I have 2 models :*
>
> class Product(models.Model):
> product_id = models.AutoField(primary_key=True)
> product_name = models.CharField(max_length=200)
> price = models.IntegerField()
> image =
> models.ImageField(upload_to='images/products_images/',null=True,blank=True)
>
>
> def __str__(self):
> return self.product_name
>
>
> class Task(models.Model):
> task_id = models.AutoField(primary_key=True)
> user = models.ForeignKey(User,on_delete = models.CASCADE)
> product = models.ForeignKey(Product,on_delete=models.CASCADE)
> performed_at = models.DateTimeField(auto_now_add=True)
>
> def __int__(self):
> return self.task_id
>
> *and I have following view with queryset  :*
>
> def product_task (request):
> product = Task.objects.select_related().all()
> for p in product:
> print(p.product.product_name)
>
>
> *I want to get products don't appear in task model*
>
>
> --
> 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/CABnE44ztqCOVMkfDXHMVDAA0b3DpiyuSDKbQw7SNR9ybUvVLhA%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/CAFKhtoQjP901DjuG0_2ULS4GeO8dBa-1RjC9_Ccj8hUWDq2weQ%40mail.gmail.com.


Displaying contrast of a queryset

2024-04-26 Thread Abdou KARAMBIZI
Hello,
*I have 2 models :*

class Product(models.Model):
product_id = models.AutoField(primary_key=True)
product_name = models.CharField(max_length=200)
price = models.IntegerField()
image =
models.ImageField(upload_to='images/products_images/',null=True,blank=True)


def __str__(self):
return self.product_name


class Task(models.Model):
task_id = models.AutoField(primary_key=True)
user = models.ForeignKey(User,on_delete = models.CASCADE)
product = models.ForeignKey(Product,on_delete=models.CASCADE)
performed_at = models.DateTimeField(auto_now_add=True)

def __int__(self):
return self.task_id

*and I have following view with queryset  :*

def product_task (request):
product = Task.objects.select_related().all()
for p in product:
print(p.product.product_name)


*I want to get products don't appear in task model*

-- 
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/CABnE44ztqCOVMkfDXHMVDAA0b3DpiyuSDKbQw7SNR9ybUvVLhA%40mail.gmail.com.


Re: Problem to style form fields with error

2024-04-25 Thread Guido Luis Dalla Vecchia
Here I attach the relevant parts of the files "views.py", "index.html" and 
"forms.py" so you can check them out.

Thanks!

El jueves, 25 de abril de 2024 a las 11:36:03 UTC-3, Ryan Nowakowski 
escribió:

> Can you share some code snippets?
>
>
> On April 24, 2024 6:28:18 PM CDT, Guido Luis Dalla Vecchia <
> gld...@gmail.com> wrote:
>
>> Hello! I'm building my first website with Django and I've been stuck for 
>> the past two months with a problem I can't figure out.
>> My website has a form with three fields that allow the user to input his 
>> first name, last name and email.
>> In my "forms.py" file, I've declared "clean" methods for each field, that 
>> add the "error" class to them if they don't pass the validation.
>> In my CSS file, I declared a rule that applies the "background-color: 
>> lightcoral" to all elements with the class ".error".
>> The problem is that, when I fill in the "last name" field with invalid 
>> data, the "first name" field gets marked as invalid too.
>> I've tried everything I could think of, and nothing has worked. It's 
>> driving me crazy!! Has anyone ever seen something like this?
>>
>> Pleas help!!!
>>
>>

-- 
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/0e076efc-5da3-4020-8b80-d9a9b7b4b861n%40googlegroups.com.
from django.shortcuts import render
from .forms import AppointmentForm

def home(request):

if request.method == "POST":
form = AppointmentForm(request.POST)

if form.is_valid():
form.save()
return render(request, "home/index2.html", {"form": form})
   

else:

form = AppointmentForm()

return render(request, "home/index2.html", {"form": form})

{% csrf_token %}

{{ form.non_field_errors }}
   



{{ form.name }}



{{ form.last_name }}



{{ form.email }}


from django import forms
from .models import Appointment

class AppointmentForm(forms.ModelForm):

class Meta:
model = Appointment
fields = ['name', 'last_name', 'email']
widgets = {
"name": forms.TextInput(attrs={"class": "form-control"}),
"last_name": forms.TextInput(attrs={"class": "form-control"}),
"email": forms.EmailInput(attrs={"class": "form-control"}),
}

def clean_name(self):
name = self.cleaned_data['name']

if not name.isalpha():
self.fields['name'].widget.attrs['class'] += ' error'
raise forms.ValidationError("Please, input only letters", code="carac_esp")


return name

def clean_last_name(self):
last_name = self.cleaned_data["last_name"]

if not last_name.isalpha():
self.fields['last_name'].widget.attrs['class'] += ' error'
raise forms.ValidationError("Please, input only letters", code="carac_esp")

return last_name

def clean_email(self):
email = self.cleaned_data["email"]
allowed_domains = ['gmail.com', 'hotmail.com', 'yahoo.com']

if not any(email.endswith(dominio) for dominio in allowed_domains):
self.fields['email'].widget.attrs['class'] += ' error'
raise forms.ValidationError("Please, input a valid email address", code="invalid_email")

return email


Problem to style form fields with error

2024-04-24 Thread Guido Luis Dalla Vecchia
Hello! I'm building my first website with Django and I've been stuck for 
the past two months with a problem I can't figure out.
My website has a form with three fields that allow the user to input his 
first name, last name and email.
In my "forms.py" file, I've declared "clean" methods for each field, that 
add the "error" class to them if they don't pass the validation.
In my CSS file, I declared a rule that applies the "background-color: 
lightcoral" to all elements with the class ".error".
The problem is that, when I fill in the "last name" field with invalid 
data, the "first name" field gets marked as invalid too.
I've tried everything I could think of, and nothing has worked. It's 
driving me crazy!! Has anyone ever seen something like this?

Pleas help!!!

-- 
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/27559637-bab0-4d96-80f8-dd2a565fccd8n%40googlegroups.com.


Problem when styling form fields with errors

2024-04-24 Thread Guido Luis Dalla Vecchia
Hello! I'm building my first website with Django and for the last 2 months 
have been stuck with a problem with my form.
My webpage has a form with 3 fields that allow the user to input his first 
name, last name and email.
I've defined "clean" methods for all three fields in "forms.py", in which 
the class "error" is added to the fields if they don't pass the validation.
The problem is that, when I complete the "last name" field with invalid 
data and click the submit button, both this and the "first name" fields get 
marked as incorrect.

Has anyone ever seen something like this? It's driving me crazy!! I don't 
know what else to try.

-- 
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/670f57ad-47cc-4a01-b825-af0d426555d6n%40googlegroups.com.


Re: Agricultural and livestock marketplace plus social network as a whole

2024-04-24 Thread villeantropist
I am in sir
+2348158951292

On Friday, March 15, 2024 at 8:49:19 PM UTC+1 Jorge Bueno wrote:

> Good evening everyone, I need help in my personal project to create an 
> agricultural and livestock marketplace and an agricultural and livestock 
> social network as a whole.Longer explanation:Farmers and ranchers leave 
> their products in our logistics centers and we publish on the web the 
> products they have brought us, then the customer orders the products with a 
> minimum purchase value to make it profitable and I take care of the 
> storage, packaging and shipping to customers. That is the part of getting 
> the products to the customer. In addition, we also have the part where the 
> producers can talk about the whole process behind it, the tasks they 
> perform daily, anecdotes and they can do it in video format apart from the 
> message if they wish. Currently, the project is in its initial phase. I 
> have created a detailed backlog and configured the repositories for the 
> backend and frontend. Here are the links to the repositories:
>
> Backend: https://github.com/Programacionpuntera/Marketplace-again
>
> Frontend: https://github.com/Programacionpuntera/Marketplace-Frontend
>
> In addition, I have created a WhatsApp group for the project where we are 
> discussing ideas and coordinating efforts. We currently have backend 
> developers and are looking for frontend developers as well, but the more 
> developers we have, the better.
>
> However, I am facing a challenge: I have no programming experience. I am 
> looking for someone who is willing to collaborate on this project, using 
> Python and Django for the backend, and Next.js and React for the frontend.
>
> Please feel free to take a look at the repositories and backlog. Any 
> comments, suggestions or contributions will be greatly appreciated.
>
> Thanks for your time and I look forward to working with you on this 
> exciting project!
> PS: I've had people say they will collaborate on the project but then they 
> don't collaborate on the project, please don't be that kind of person.
>
> Best regards,
>
> Jorge
>

-- 
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/e817173f-3cf9-4553-a1ae-c0ad9ec61df9n%40googlegroups.com.


Re: Agricultural and livestock marketplace plus social network as a whole

2024-04-23 Thread 1001_prabhjot Singh
Intrested 9877199920

On Sat, Mar 16, 2024, 1:19 AM Jorge Bueno 
wrote:

> Good evening everyone, I need help in my personal project to create an
> agricultural and livestock marketplace and an agricultural and livestock
> social network as a whole.Longer explanation:Farmers and ranchers leave
> their products in our logistics centers and we publish on the web the
> products they have brought us, then the customer orders the products with a
> minimum purchase value to make it profitable and I take care of the
> storage, packaging and shipping to customers. That is the part of getting
> the products to the customer. In addition, we also have the part where the
> producers can talk about the whole process behind it, the tasks they
> perform daily, anecdotes and they can do it in video format apart from the
> message if they wish. Currently, the project is in its initial phase. I
> have created a detailed backlog and configured the repositories for the
> backend and frontend. Here are the links to the repositories:
>
> Backend: https://github.com/Programacionpuntera/Marketplace-again
>
> Frontend: https://github.com/Programacionpuntera/Marketplace-Frontend
>
> In addition, I have created a WhatsApp group for the project where we are
> discussing ideas and coordinating efforts. We currently have backend
> developers and are looking for frontend developers as well, but the more
> developers we have, the better.
>
> However, I am facing a challenge: I have no programming experience. I am
> looking for someone who is willing to collaborate on this project, using
> Python and Django for the backend, and Next.js and React for the frontend.
>
> Please feel free to take a look at the repositories and backlog. Any
> comments, suggestions or contributions will be greatly appreciated.
>
> Thanks for your time and I look forward to working with you on this
> exciting project!
> PS: I've had people say they will collaborate on the project but then they
> don't collaborate on the project, please don't be that kind of person.
>
> Best regards,
>
> Jorge
>
> --
> 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/d160dccf-6582-4b1e-b9fe-186e10342b13n%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/CAMCYDrgFS1OVUc4kxaHW9C%3DFenbC143f1kFdP6Fy%3DQ3fEOGJVg%40mail.gmail.com.


Re: Agricultural and livestock marketplace plus social network as a whole

2024-04-23 Thread Sujata Aghor
BTW your github pages are not accessible (giving #404 error) - Both links
frontend and backend.



On Tue, Apr 23, 2024 at 3:24 PM Sujata Aghor 
wrote:

> Hello
> I am interested in Python Django work.
> Whatsapp : 9881301878
>
>
>> On Saturday, March 16, 2024 at 1:19:19 AM UTC+5:30 Jorge Bueno wrote:
>>
>>> Good evening everyone, I need help in my personal project to create an
>>> agricultural and livestock marketplace and an agricultural and livestock
>>> social network as a whole.Longer explanation:Farmers and ranchers leave
>>> their products in our logistics centers and we publish on the web the
>>> products they have brought us, then the customer orders the products with a
>>> minimum purchase value to make it profitable and I take care of the
>>> storage, packaging and shipping to customers. That is the part of getting
>>> the products to the customer. In addition, we also have the part where the
>>> producers can talk about the whole process behind it, the tasks they
>>> perform daily, anecdotes and they can do it in video format apart from the
>>> message if they wish. Currently, the project is in its initial phase. I
>>> have created a detailed backlog and configured the repositories for the
>>> backend and frontend. Here are the links to the repositories:
>>>
>>> Backend: https://github.com/Programacionpuntera/Marketplace-again
>>>
>>> Frontend: https://github.com/Programacionpuntera/Marketplace-Frontend
>>>
>>> In addition, I have created a WhatsApp group for the project where we
>>> are discussing ideas and coordinating efforts. We currently have backend
>>> developers and are looking for frontend developers as well, but the more
>>> developers we have, the better.
>>>
>>> However, I am facing a challenge: I have no programming experience. I am
>>> looking for someone who is willing to collaborate on this project, using
>>> Python and Django for the backend, and Next.js and React for the frontend.
>>>
>>> Please feel free to take a look at the repositories and backlog. Any
>>> comments, suggestions or contributions will be greatly appreciated.
>>>
>>> Thanks for your time and I look forward to working with you on this
>>> exciting project!
>>> PS: I've had people say they will collaborate on the project but then
>>> they don't collaborate on the project, please don't be that kind of person.
>>>
>>> Best regards,
>>>
>>> Jorge
>>>
>> --
>> 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/36da31c9-307c-4aeb-b17e-3a37c3b18ab8n%40googlegroups.com
>> 
>> .
>>
>
>
> --
>
> Thanks & Regards!
> Sujata S. Aghor
>
>

-- 

Thanks & Regards!
Sujata S. Aghor

-- 
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/CAJCP8KAMSSs9gjuc3j7oYwrm4YZ3BjpLNUW8OuRxaVhqv4hFHA%40mail.gmail.com.


Re: Agricultural and livestock marketplace plus social network as a whole

2024-04-23 Thread Sujata Aghor
Hello
I am interested in Python Django work.
Whatsapp : 9881301878


> On Saturday, March 16, 2024 at 1:19:19 AM UTC+5:30 Jorge Bueno wrote:
>
>> Good evening everyone, I need help in my personal project to create an
>> agricultural and livestock marketplace and an agricultural and livestock
>> social network as a whole.Longer explanation:Farmers and ranchers leave
>> their products in our logistics centers and we publish on the web the
>> products they have brought us, then the customer orders the products with a
>> minimum purchase value to make it profitable and I take care of the
>> storage, packaging and shipping to customers. That is the part of getting
>> the products to the customer. In addition, we also have the part where the
>> producers can talk about the whole process behind it, the tasks they
>> perform daily, anecdotes and they can do it in video format apart from the
>> message if they wish. Currently, the project is in its initial phase. I
>> have created a detailed backlog and configured the repositories for the
>> backend and frontend. Here are the links to the repositories:
>>
>> Backend: https://github.com/Programacionpuntera/Marketplace-again
>>
>> Frontend: https://github.com/Programacionpuntera/Marketplace-Frontend
>>
>> In addition, I have created a WhatsApp group for the project where we are
>> discussing ideas and coordinating efforts. We currently have backend
>> developers and are looking for frontend developers as well, but the more
>> developers we have, the better.
>>
>> However, I am facing a challenge: I have no programming experience. I am
>> looking for someone who is willing to collaborate on this project, using
>> Python and Django for the backend, and Next.js and React for the frontend.
>>
>> Please feel free to take a look at the repositories and backlog. Any
>> comments, suggestions or contributions will be greatly appreciated.
>>
>> Thanks for your time and I look forward to working with you on this
>> exciting project!
>> PS: I've had people say they will collaborate on the project but then
>> they don't collaborate on the project, please don't be that kind of person.
>>
>> Best regards,
>>
>> Jorge
>>
> --
> 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/36da31c9-307c-4aeb-b17e-3a37c3b18ab8n%40googlegroups.com
> 
> .
>


-- 

Thanks & Regards!
Sujata S. Aghor

-- 
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/CAJCP8KA5wrFF2%3DRuavsOBi%2B%2BhJyN8M2YJkrLA-jBs1OqnMEEmQ%40mail.gmail.com.


Re: Agricultural and livestock marketplace plus social network as a whole

2024-04-21 Thread Ankit Patne
I can work with Python and Django part. Whatsapp : +91 9373579749

On Saturday, March 16, 2024 at 1:19:19 AM UTC+5:30 Jorge Bueno wrote:

> Good evening everyone, I need help in my personal project to create an 
> agricultural and livestock marketplace and an agricultural and livestock 
> social network as a whole.Longer explanation:Farmers and ranchers leave 
> their products in our logistics centers and we publish on the web the 
> products they have brought us, then the customer orders the products with a 
> minimum purchase value to make it profitable and I take care of the 
> storage, packaging and shipping to customers. That is the part of getting 
> the products to the customer. In addition, we also have the part where the 
> producers can talk about the whole process behind it, the tasks they 
> perform daily, anecdotes and they can do it in video format apart from the 
> message if they wish. Currently, the project is in its initial phase. I 
> have created a detailed backlog and configured the repositories for the 
> backend and frontend. Here are the links to the repositories:
>
> Backend: https://github.com/Programacionpuntera/Marketplace-again
>
> Frontend: https://github.com/Programacionpuntera/Marketplace-Frontend
>
> In addition, I have created a WhatsApp group for the project where we are 
> discussing ideas and coordinating efforts. We currently have backend 
> developers and are looking for frontend developers as well, but the more 
> developers we have, the better.
>
> However, I am facing a challenge: I have no programming experience. I am 
> looking for someone who is willing to collaborate on this project, using 
> Python and Django for the backend, and Next.js and React for the frontend.
>
> Please feel free to take a look at the repositories and backlog. Any 
> comments, suggestions or contributions will be greatly appreciated.
>
> Thanks for your time and I look forward to working with you on this 
> exciting project!
> PS: I've had people say they will collaborate on the project but then they 
> don't collaborate on the project, please don't be that kind of person.
>
> Best regards,
>
> Jorge
>

-- 
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/36da31c9-307c-4aeb-b17e-3a37c3b18ab8n%40googlegroups.com.


Re: Agricultural and livestock marketplace plus social network as a whole

2024-04-21 Thread Collins Emmanuel
Count me in  +254714411940

On Sun 21. Apr 2024 at 19:13, Michael Onuekwusi 
wrote:

> Interested please, 8072094026 whatsapp
>
> On Fri, Mar 15, 2024, 8:49 PM Jorge Bueno 
> wrote:
>
>> Good evening everyone, I need help in my personal project to create an
>> agricultural and livestock marketplace and an agricultural and livestock
>> social network as a whole.Longer explanation:Farmers and ranchers leave
>> their products in our logistics centers and we publish on the web the
>> products they have brought us, then the customer orders the products with a
>> minimum purchase value to make it profitable and I take care of the
>> storage, packaging and shipping to customers. That is the part of getting
>> the products to the customer. In addition, we also have the part where the
>> producers can talk about the whole process behind it, the tasks they
>> perform daily, anecdotes and they can do it in video format apart from the
>> message if they wish. Currently, the project is in its initial phase. I
>> have created a detailed backlog and configured the repositories for the
>> backend and frontend. Here are the links to the repositories:
>>
>> Backend: https://github.com/Programacionpuntera/Marketplace-again
>>
>> Frontend: https://github.com/Programacionpuntera/Marketplace-Frontend
>>
>> In addition, I have created a WhatsApp group for the project where we are
>> discussing ideas and coordinating efforts. We currently have backend
>> developers and are looking for frontend developers as well, but the more
>> developers we have, the better.
>>
>> However, I am facing a challenge: I have no programming experience. I am
>> looking for someone who is willing to collaborate on this project, using
>> Python and Django for the backend, and Next.js and React for the frontend.
>>
>> Please feel free to take a look at the repositories and backlog. Any
>> comments, suggestions or contributions will be greatly appreciated.
>>
>> Thanks for your time and I look forward to working with you on this
>> exciting project!
>> PS: I've had people say they will collaborate on the project but then
>> they don't collaborate on the project, please don't be that kind of person.
>>
>> Best regards,
>>
>> Jorge
>
>
>> --
>> 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/d160dccf-6582-4b1e-b9fe-186e10342b13n%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/CAPbPfKVfU3sZwH9D7L4K6oGDcqrRRcybzXnRPV0%3DtQ-jXe1odw%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/CABHPbCE26esZGrAaVt%2BatUcTWEKV_8TDBtcMdi6viqphjP_8vg%40mail.gmail.com.


How to solve Access to fetch at 'https://api.amadeus.com/v1/flight-offers' from origin 'http://127.0.0.1:8000' has been blocked by CORS policy: Response to preflight request doesn't pass access contro

2024-04-21 Thread Эля Min
I have this one:from django.middleware.common import MiddlewareMixin
from django.http import JsonResponse

class CorsMiddleware(MiddlewareMixin):
def process_request(self, request):
if request.method == "OPTIONS" and 
"HTTP_ACCESS_CONTROL_REQUEST_METHOD" in request.META:
response = JsonResponse({"detail": "CORS policy allows this 
request"})
response["Access-Control-Allow-Origin"] = "*"
response["Access-Control-Allow-Methods"] = "GET, POST, PUT, 
DELETE, OPTIONS"
response["Access-Control-Allow-Headers"] = "Content-Type, 
Authorization"
return response
return None

def process_response(self, request, response):
response["Access-Control-Allow-Origin"] = "*"
response["Access-Control-Allow-Methods"] = "GET, POST, PUT, DELETE, 
OPTIONS"
response["Access-Control-Allow-Headers"] = "Content-Type, 
Authorization"
return response 
AND:
CORS_ALLOWED_ORIGINS = [
'http://127.0.0.1:8000', ]
BEFORE I DID PROXY,but my project stopped before starting. Please give me 
HElp

-- 
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/8b81f71d-f925-437a-9e39-4c1566b05709n%40googlegroups.com.


Re: Agricultural and livestock marketplace plus social network as a whole

2024-04-21 Thread Michael Onuekwusi
Interested please, 8072094026 whatsapp

On Fri, Mar 15, 2024, 8:49 PM Jorge Bueno 
wrote:

> Good evening everyone, I need help in my personal project to create an
> agricultural and livestock marketplace and an agricultural and livestock
> social network as a whole.Longer explanation:Farmers and ranchers leave
> their products in our logistics centers and we publish on the web the
> products they have brought us, then the customer orders the products with a
> minimum purchase value to make it profitable and I take care of the
> storage, packaging and shipping to customers. That is the part of getting
> the products to the customer. In addition, we also have the part where the
> producers can talk about the whole process behind it, the tasks they
> perform daily, anecdotes and they can do it in video format apart from the
> message if they wish. Currently, the project is in its initial phase. I
> have created a detailed backlog and configured the repositories for the
> backend and frontend. Here are the links to the repositories:
>
> Backend: https://github.com/Programacionpuntera/Marketplace-again
>
> Frontend: https://github.com/Programacionpuntera/Marketplace-Frontend
>
> In addition, I have created a WhatsApp group for the project where we are
> discussing ideas and coordinating efforts. We currently have backend
> developers and are looking for frontend developers as well, but the more
> developers we have, the better.
>
> However, I am facing a challenge: I have no programming experience. I am
> looking for someone who is willing to collaborate on this project, using
> Python and Django for the backend, and Next.js and React for the frontend.
>
> Please feel free to take a look at the repositories and backlog. Any
> comments, suggestions or contributions will be greatly appreciated.
>
> Thanks for your time and I look forward to working with you on this
> exciting project!
> PS: I've had people say they will collaborate on the project but then they
> don't collaborate on the project, please don't be that kind of person.
>
> Best regards,
>
> Jorge
>
> --
> 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/d160dccf-6582-4b1e-b9fe-186e10342b13n%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/CAPbPfKVfU3sZwH9D7L4K6oGDcqrRRcybzXnRPV0%3DtQ-jXe1odw%40mail.gmail.com.


Re: problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread ASAMOAH EMMANUEL
from django.urls import path
from . import views

urlpatterns = [
path('login/', views.login_user, name='login'),
path('logout/', views.logout_request, name='logout'),
path('register/', views.registration, name='registration'),
]

On Wed, Apr 17, 2024 at 5:16 PM Ana Jiménez  wrote:

> the file that says i have wrong is this one:
> djangoapp/urls.py
> # Uncomment the required imports before adding the code
>
> from django.shortcuts import render
> from django.http import HttpResponseRedirect, HttpResponse
> from django.contrib.auth.models import User
> from django.shortcuts import get_object_or_404, render, redirect
> from django.contrib.auth import logout
> from django.contrib import messages
> from datetime import datetime
>
> from django.http import JsonResponse
> from django.contrib.auth import login, authenticate
> import logging
> import json
> from django.views.decorators.csrf import csrf_exempt
> from .populate import initiate
>
>
> # Get an instance of a logger
> logger = logging.getLogger(__name__)
>
>
> # Create your views here.
>
> # Create a `login_request` view to handle sign in request
> @csrf_exempt
> def login_user(request):
> # Get username and password from request.POST dictionary
> data = json.loads(request.body)
> username = data['userName']
> password = data['password']
> # Try to check if provide credential can be authenticated
> user = authenticate(username=username, password=password)
> data = {"userName": username}
> if user is not None:
> # If user is valid, call login method to login current user
> login(request, user)
> data = {"userName": username, "status": "Authenticated"}
> return JsonResponse(data)
>
> # Create a `logout_request` view to handle sign out request
> def logout_request(request):
> logout(request)
> data = {"userName": "", "status": "Logged out"}
> return JsonResponse(data)
> # ...
>
> # Create a `registration` view to handle sign up request
> @csrf_exempt
> def registration(request):
> context = {}
>
> data = json.loads(request.body)
> username = data['userName']
> password = data['password']
> first_name = data['firstName']
> last_name = data['lastName']
> email = data['email']
> username_exist = False
> email_exist = False
> try:
> # check if user already exists
> User.objects.get(username=username)
> username_exist = True
> except:
> #If not, simply log this is a new user
> logger.debug("{} is a new user".format(username))
>
> #If it is a new user, create a new user
> if not username_exist:
> #Create user in auth_user table
> user = User.objects.create_user(username=username, 
> first_name=first_name,
> last_name=last_name, email=email, password=password)
> #Login user and redirect to list page
> login(request, user)
> data = {"userName":username,"status": "Authenticated"}
> return JsonResponse(data)
> else :
> data = {"userName":username, "error":"Already exists"}
> return JsonResponse(data)
> # ...
>
> # # Update the `get_dealerships` view to render the index page with
> # a list of dealerships
> # def get_dealerships(request):
> # ...
>
> # Create a `get_dealer_reviews` view to render the reviews of a dealer
> # def get_dealer_reviews(request,dealer_id):
> # ...
>
> # Create a `get_dealer_details` view to render the dealer details
> # def get_dealer_details(request, dealer_id):
> # ...
>
> # Create a `add_review` view to submit a review
> # def add_review(request):
> # ...
>
> After that I added this urlpatterns
> from django.urls import path from . import views urlpatterns = [ path(
> 'login/', views.login_user, name='login'), path('logout/',
> views.logout_request, name='logout'), path('register/',
> views.registration, name='registration'),
> and i still got the following error :(
> Traceback (most recent call last):
>   File "manage.py", line 22, in 
> main()
>   File "manage.py", line 18, in main
> execute_from_command_line(sys.argv)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
> line 442, in execute_from_command_line
> utility.execute()
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
> line 436, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
> line 412, in run_from_argv
> self.execute(*args, **cmd_options)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
> line 453, in execute
> self.check()
>   File
> 

Re: problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread Ana Jiménez
the file that says i have wrong is this one: 
djangoapp/urls.py
# Uncomment the required imports before adding the code

from django.shortcuts import render
from django.http import HttpResponseRedirect, HttpResponse
from django.contrib.auth.models import User
from django.shortcuts import get_object_or_404, render, redirect
from django.contrib.auth import logout
from django.contrib import messages
from datetime import datetime

from django.http import JsonResponse
from django.contrib.auth import login, authenticate
import logging
import json
from django.views.decorators.csrf import csrf_exempt
from .populate import initiate


# Get an instance of a logger
logger = logging.getLogger(__name__)


# Create your views here.

# Create a `login_request` view to handle sign in request
@csrf_exempt
def login_user(request):
# Get username and password from request.POST dictionary
data = json.loads(request.body)
username = data['userName']
password = data['password']
# Try to check if provide credential can be authenticated
user = authenticate(username=username, password=password)
data = {"userName": username}
if user is not None:
# If user is valid, call login method to login current user
login(request, user)
data = {"userName": username, "status": "Authenticated"}
return JsonResponse(data)

# Create a `logout_request` view to handle sign out request
def logout_request(request):
logout(request)
data = {"userName": "", "status": "Logged out"}
return JsonResponse(data)
# ...

# Create a `registration` view to handle sign up request
@csrf_exempt
def registration(request):
context = {}

data = json.loads(request.body)
username = data['userName']
password = data['password']
first_name = data['firstName']
last_name = data['lastName']
email = data['email']
username_exist = False
email_exist = False
try:
# check if user already exists
User.objects.get(username=username)
username_exist = True
except:
#If not, simply log this is a new user
logger.debug("{} is a new user".format(username))

#If it is a new user, create a new user
if not username_exist:
#Create user in auth_user table
user = User.objects.create_user(username=username, 
first_name=first_name, 
last_name=last_name, email=email, password=password)
#Login user and redirect to list page
login(request, user)
data = {"userName":username,"status": "Authenticated"}
return JsonResponse(data)
else : 
data = {"userName":username, "error":"Already exists"}
return JsonResponse(data)
# ...

# # Update the `get_dealerships` view to render the index page with
# a list of dealerships
# def get_dealerships(request):
# ...

# Create a `get_dealer_reviews` view to render the reviews of a dealer
# def get_dealer_reviews(request,dealer_id):
# ...

# Create a `get_dealer_details` view to render the dealer details
# def get_dealer_details(request, dealer_id):
# ...

# Create a `add_review` view to submit a review
# def add_review(request):
# ...

After that I added this urlpatterns
from django.urls import path from . import views urlpatterns = [ path(
'login/', views.login_user, name='login'), path('logout/', 
views.logout_request, name='logout'), path('register/', views.registration, 
name='registration'), 
and i still got the following error :( 
Traceback (most recent call last):
  File "manage.py", line 22, in 
main()
  File "manage.py", line 18, in main
execute_from_command_line(sys.argv)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
 
line 442, in execute_from_command_line
utility.execute()
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
 
line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
 
line 412, in run_from_argv
self.execute(*args, **cmd_options)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
 
line 453, in execute
self.check()
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
 
line 485, in check
all_issues = checks.run_checks(
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/registry.py",
 
line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py",
 
line 14, in 

Re: problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread ASAMOAH EMMANUEL
check your urls.py file to make sure you haven't imported circularly. or
better still, paste your urls.py here

On Wed, Apr 17, 2024 at 4:47 PM Ana Jiménez  wrote:

> hi guys, so i'm doing a project and there's a part that says i need to do
> the migrations but when i do that i get this error
> "Traceback (most recent call last):
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
> line 717, in url_patterns
> iter(patterns)
> TypeError: 'module' object is not iterable
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File "manage.py", line 22, in 
> main()
>   File "manage.py", line 18, in main
> execute_from_command_line(sys.argv)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
> line 442, in execute_from_command_line
> utility.execute()
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
> line 436, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
> line 412, in run_from_argv
> self.execute(*args, **cmd_options)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
> line 453, in execute
> self.check()
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
> line 485, in check
> all_issues = checks.run_checks(
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/registry.py",
> line 88, in run_checks
> new_errors = check(app_configs=app_configs, databases=databases)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py",
> line 14, in check_url_config
> return check_resolver(resolver)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py",
> line 24, in check_resolver
> return check_method()
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
> line 495, in check
> messages.extend(check_resolver(pattern))
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py",
> line 24, in check_resolver
> return check_method()
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
> line 494, in check
> for pattern in self.url_patterns:
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/utils/functional.py",
> line 57, in __get__
> res = instance.__dict__[self.name] = self.func(instance)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
> line 725, in url_patterns
> raise ImproperlyConfigured(msg.format(name=self.urlconf_name)) from e
> django.core.exceptions.ImproperlyConfigured: The included URLconf ' 'djangoapp.urls' from
> '/home/project/xrwvm-fullstack_developer_capstone/server/djangoapp/urls.py'>'
> does not appear to have any patterns in it. If you see the 'urlpatterns'
> variable with valid patterns in the file then the issue is probably caused
> by a circular import. "
>
> and i don't know how to solve it :( i'm a beginner in django i need helppp
>
> --
> 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/f0b7aa30-2094-47ba-a93f-ed49b506e2ccn%40googlegroups.com
> 
> .
>


-- 
I don't stop when I'm tired, I only stop when the job is done.

-- 
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/CABFHQYzEBjdmvmrePg2YYuT%2BfJdYtXrxm6qhrpebH8CP4_z3_Q%40mail.gmail.com.


problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread Ana Jiménez
hi guys, so i'm doing a project and there's a part that says i need to do 
the migrations but when i do that i get this error
"Traceback (most recent call last):
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
 
line 717, in url_patterns
iter(patterns)
TypeError: 'module' object is not iterable

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "manage.py", line 22, in 
main()
  File "manage.py", line 18, in main
execute_from_command_line(sys.argv)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
 
line 442, in execute_from_command_line
utility.execute()
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
 
line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
 
line 412, in run_from_argv
self.execute(*args, **cmd_options)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
 
line 453, in execute
self.check()
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
 
line 485, in check
all_issues = checks.run_checks(
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/registry.py",
 
line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py",
 
line 14, in check_url_config
return check_resolver(resolver)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py",
 
line 24, in check_resolver
return check_method()
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
 
line 495, in check
messages.extend(check_resolver(pattern))
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py",
 
line 24, in check_resolver
return check_method()
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
 
line 494, in check
for pattern in self.url_patterns:
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/utils/functional.py",
 
line 57, in __get__
res = instance.__dict__[self.name] = self.func(instance)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
 
line 725, in url_patterns
raise ImproperlyConfigured(msg.format(name=self.urlconf_name)) from e
django.core.exceptions.ImproperlyConfigured: The included URLconf '' 
does not appear to have any patterns in it. If you see the 'urlpatterns' 
variable with valid patterns in the file then the issue is probably caused 
by a circular import. " 

and i don't know how to solve it :( i'm a beginner in django i need helppp

-- 
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/f0b7aa30-2094-47ba-a93f-ed49b506e2ccn%40googlegroups.com.


Re: ModuleNotFoundError: No module named 'mysite'

2024-04-14 Thread Ahmad Irfan
have you checked your virtual env?

On Sun, 14 Apr 2024 at 5:38 AM, hikinthru  wrote:

> I am a new Django user and am setting up my first site on a local MAMP
> server. Django is running, but when I run `python manage.py makemigrations`
> I get the following error:
>
> ---
>
> Traceback (most recent call last):
>
>   File "/Applications/MAMP/htdocs/flashcards/manage.py", line 22, in
> 
>
> main()
>
>   File "/Applications/MAMP/htdocs/flashcards/manage.py", line 18, in main
>
> execute_from_command_line(sys.argv)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/core/management/__init__.py",
> line 446, in execute_from_command_line
>
> utility.execute()
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/core/management/__init__.py",
> line 440, in execute
>
> self.fetch_command(subcommand).run_from_argv(self.argv)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/core/management/base.py",
> line 427, in run_from_argv
>
> connections.close_all()
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/db/utils.py",
> line 212, in close_all
>
> for alias in self:
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/connection.py",
> line 73, in __iter__
>
> return iter(self.settings)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/functional.py",
> line 49, in __get__
>
> res = instance.__dict__[self.name] = self.func(instance)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/connection.py",
> line 45, in settings
>
> self._settings = self.configure_settings(self._settings)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/db/utils.py",
> line 148, in configure_settings
>
> databases = super().configure_settings(databases)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/connection.py",
> line 50, in configure_settings
>
> settings = getattr(django_settings, self.settings_name)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/conf/__init__.py",
> line 87, in __getattr__
>
> self._setup(name)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/conf/__init__.py",
> line 74, in _setup
>
> self._wrapped = Settings(settings_module)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/conf/__init__.py",
> line 183, in __init__
>
> mod = importlib.import_module(self.SETTINGS_MODULE)
>
>   File 
> "/opt/homebrew/Cellar/python@3.9/3.9.18_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py",
> line 127, in import_module
>
> return _bootstrap._gcd_import(name[level:], package, level)
>
>   File "", line 1030, in _gcd_import
>
>   File "", line 1007, in _find_and_load
>
>   File "", line 972, in
> _find_and_load_unlocked
>
>   File "", line 228, in
> _call_with_frames_removed
>
>   File "", line 1030, in _gcd_import
>
>   File "", line 1007, in _find_and_load
>
>   File "", line 984, in
> _find_and_load_unlocked
>
> ModuleNotFoundError: No module named 'mysite'
>
> --
>
> This is my wsgi.py file:
> """
> WSGI config for flashcards project.
>
> It exposes the WSGI callable as a module-level variable named
> ``application``.
>
> For more information on this file, see
> https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/
> """
>
> import os
> import sys
>
> from django.core.wsgi import get_wsgi_application
>
> path = '/Applications/MAMP/htdocs/flashcards/flashcards'
>
> if path not in sys.path:
> sys.path.insert(0,path)
>
> BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
> sys.path.append(BASE_DIR)
> os.environ['DJANGO_SETTINGS_MODULE'] = 'flashcards.settings'
> os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'flashcards.settings')
>
> application = get_wsgi_application()
>
>
> I have searched my entire hard drive for a related config file referencing
> "mysite" and cannot find one. I'm unable to find anything online that
> points to where the error is coming from. The words, "mysite" do not exist
> on my hard drive except in some very old and archived php files in a
> completely different directory area.
>
> Does anyone have any ideas?
>
> Thanks so much,
>
> Sherrie
>
> --
> 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
> 

problem when i create a new django project

2024-04-14 Thread 无名氏
创建 Django 应用程序时出错: Python 端错误。退出代码: 1,错误: Traceback (most recent call 
last): File 
"D:\pycharm_stu\pycharm_stu_\plugins\python\helpers\pycharm\_jb_django_project_creator.py",
 
line 12, in   management.execute_from_command_line(argv=["django-admin", 
"startproject", project_name, path]) File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\__init__.py",
 
line 446, in execute_from_command_line utility.execute() File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\__init__.py",
 
line 440, in execute 
self.fetch_command(subcommand).run_from_argv(self.argv) File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\base.py", 
line 402, in run_from_argv self.execute(*args, **cmd_options) File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\base.py", 
line 448, in execute output = self.handle(*args, **options) File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\commands\startproject.py",
 
line 21, in handle super().handle("project", project_name, target, 
**options) File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\templates.py",
 
line 148, in handle django.setup() File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\__init__.py", line 16, 
in setup from django.urls import set_script_prefix File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\urls\__init__.py", line 
1, in   from .base import ( File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\urls\base.py", line 8, 
in   from .exceptions import NoReverseMatch, Resolver404 File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\urls\exceptions.py", 
line 1, in   from django.http import Http404 File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\http\__init__.py", line 
8, in   from django.http.response import ( File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\http\response.py", line 
16, in   from django.core.serializers.json import DjangoJSONEncoder File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\serializers\__init__.py",
 
line 23, in   from django.core.serializers.base import 
SerializerDoesNotExist File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\serializers\base.py", 
line 9, in   from django.db import models File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\db\models\__init__.py", 
line 40, in   from django.db.models.fields.files import FileField, 
ImageField File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\db\models\fields\files.py", 
line 8, in   from django.core.files.storage import Storage, default_storage 
File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\files\storage\__init__.py",
 
line 3, in   from django.conf import DEFAULT_STORAGE_ALIAS, settings 
ImportError: cannot import name 'DEFAULT_STORAGE_ALIAS' from 'django.conf' 
(D:\anaconda\envs\cuda11.3\lib\site-packages\django\conf\__init__.py) ,输出:


 my django version is 4.2.11,  python version is 3.8,I was able to 
successfully run an existing Django project, but I got an error when 
creating the project

can anyone help me? thanks

-- 
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/5eb98022-96fc-4c1b-83f5-ee72cda477cfn%40googlegroups.com.


ModuleNotFoundError: No module named 'mysite'

2024-04-13 Thread hikinthru
I am a new Django user and am setting up my first site on a local MAMP 
server. Django is running, but when I run `python manage.py makemigrations` 
I get the following error:

---

Traceback (most recent call last):

  File "/Applications/MAMP/htdocs/flashcards/manage.py", line 22, in 


main()

  File "/Applications/MAMP/htdocs/flashcards/manage.py", line 18, in main

execute_from_command_line(sys.argv)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/core/management/__init__.py",
 
line 446, in execute_from_command_line

utility.execute()

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/core/management/__init__.py",
 
line 440, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/core/management/base.py",
 
line 427, in run_from_argv

connections.close_all()

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/db/utils.py",
 
line 212, in close_all

for alias in self:

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/connection.py",
 
line 73, in __iter__

return iter(self.settings)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/functional.py",
 
line 49, in __get__

res = instance.__dict__[self.name] = self.func(instance)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/connection.py",
 
line 45, in settings

self._settings = self.configure_settings(self._settings)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/db/utils.py",
 
line 148, in configure_settings

databases = super().configure_settings(databases)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/connection.py",
 
line 50, in configure_settings

settings = getattr(django_settings, self.settings_name)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/conf/__init__.py",
 
line 87, in __getattr__

self._setup(name)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/conf/__init__.py",
 
line 74, in _setup

self._wrapped = Settings(settings_module)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/conf/__init__.py",
 
line 183, in __init__

mod = importlib.import_module(self.SETTINGS_MODULE)

  File 
"/opt/homebrew/Cellar/python@3.9/3.9.18_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py",
 
line 127, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

  File "", line 1030, in _gcd_import

  File "", line 1007, in _find_and_load

  File "", line 972, in _find_and_load_unlocked

  File "", line 228, in 
_call_with_frames_removed

  File "", line 1030, in _gcd_import

  File "", line 1007, in _find_and_load

  File "", line 984, in _find_and_load_unlocked

ModuleNotFoundError: No module named 'mysite'

--

This is my wsgi.py file:
"""
WSGI config for flashcards project.

It exposes the WSGI callable as a module-level variable named 
``application``.

For more information on this file, see
https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/
"""

import os
import sys

from django.core.wsgi import get_wsgi_application

path = '/Applications/MAMP/htdocs/flashcards/flashcards'

if path not in sys.path:
sys.path.insert(0,path)

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
os.environ['DJANGO_SETTINGS_MODULE'] = 'flashcards.settings'
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'flashcards.settings')

application = get_wsgi_application()


I have searched my entire hard drive for a related config file referencing 
"mysite" and cannot find one. I'm unable to find anything online that 
points to where the error is coming from. The words, "mysite" do not exist 
on my hard drive except in some very old and archived php files in a 
completely different directory area.

Does anyone have any ideas?

Thanks so much,

Sherrie

-- 
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/ec322336-f97e-4ba6-a4a6-823ad576f989n%40googlegroups.com.


Login using phone and number

2024-04-13 Thread Yash Trivedi
I need a code for login using phone number and password without using 
form.py 
and tell me how can I do quickly 

-- 
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/aa859748-80f6-467b-a41b-30d54925bbd0n%40googlegroups.com.


Re: How to effectively use PUT and DELETE HTTP methods in Django Class-Based Views?

2024-04-12 Thread Luis Zárate
Also a recomendation, see that `dispatch` method call the view as

handler(request, *args, **kwargs)

So maybe is a good idea do something like:

class MyView(view):
 def put(self, request, *args, **kwargs):
...


Regards,

El vie, 12 abr 2024 a las 16:13, Luis Zárate ()
escribió:

> See
> https://docs.djangoproject.com/en/5.0/topics/class-based-views/#supporting-other-http-methods
> Also on view you have a variable called, where you can limit the available
> methods.
>
> http_method_names
>
>
> El vie, 12 abr 2024 a las 7:20, Mamadou Alpha Bah (<
> mamadoualphabah...@gmail.com>) escribió:
>
>> 
>>
>> I'm setting up a CRUD system with Django, using Class-Based Views.
>> Currently I'm trying to figure out how to handle HTTP PUT and DELETE
>> requests in my application. Despite searching the Django documentation
>> extensively, I'm having trouble finding concrete examples and clear
>> explanations of how to submit these types of queries to a class-based view.
>>
>> I created a view class named CategoryView, extending from:
>> django.views.View, in which I implemented the get and post methods
>> successfully. And I want to build my urls like this:
>>
>>1. New Category: 127.0.0.1:8000/backendapp/categories/create
>>2. List all Category: 127.0.0.1:8000/backendapp/categories/
>>3. Retrieve only one Category: 127.0.0.1:8000/backendapp/categories/1
>>4. Etc...
>>
>> However, when I try to implement the put and delete methods, I get stuck.
>>
>> For example :
>> from django.views import View
>>
>> class CategoryView(View):
>>  template_name = 'backendapp/pages/category/categories.html'
>>
>>  def get(self, request):
>>   categories = Category.objects.all()
>>   context = { 'categories': categories }
>>   return render(request, self.template_name, context)
>>
>>  def post(self, request):
>>   return
>>
>>  def delete(self, request, pk):
>>   return
>>
>>  def put(self, request):
>>   return
>>
>> I read through the Django documentation and found that Class-Based Views
>> support HTTP requests: ["get", "post", "put", "patch", "delete", "head ",
>> "options", "trace"].
>>
>> link:
>> https://docs.djangoproject.com/en/5.0/ref/class-based-views/base/#django.views.generic.base.View
>> 
>>
>> Despite this, I can't figure out how to do it.
>>
>> So I'm asking for your help to unblock me.
>>
>> I looked at the Django documentation and searched online for examples and
>> tutorials on handling HTTP requests in class-based views. I also tried
>> experimenting with adding the put and delete methods to my CategoryView
>> view class, but without success. I expected to find resources that clearly
>> explain how to integrate these queries into my Django application, as well
>> as practical examples demonstrating their use. However, I haven't found a
>> working solution and am now seeking help from the community to overcome
>> this difficulty.
>>
>> --
>> 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/b1ecd4a7-5946-4da5-80ae-5923b6648a70n%40googlegroups.com
>> 
>> .
>>
>
>
> --
> "La utopía sirve para caminar" Fernando Birri
>
>
>

-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyNQtHhV3TPMtB4qLyipdjcnZBZA8_mwf-1_j2F%2B_sER5g%40mail.gmail.com.


Re: How to effectively use PUT and DELETE HTTP methods in Django Class-Based Views?

2024-04-12 Thread Luis Zárate
See
https://docs.djangoproject.com/en/5.0/topics/class-based-views/#supporting-other-http-methods
Also on view you have a variable called, where you can limit the available
methods.

http_method_names


El vie, 12 abr 2024 a las 7:20, Mamadou Alpha Bah (<
mamadoualphabah...@gmail.com>) escribió:

> 
>
> I'm setting up a CRUD system with Django, using Class-Based Views.
> Currently I'm trying to figure out how to handle HTTP PUT and DELETE
> requests in my application. Despite searching the Django documentation
> extensively, I'm having trouble finding concrete examples and clear
> explanations of how to submit these types of queries to a class-based view.
>
> I created a view class named CategoryView, extending from:
> django.views.View, in which I implemented the get and post methods
> successfully. And I want to build my urls like this:
>
>1. New Category: 127.0.0.1:8000/backendapp/categories/create
>2. List all Category: 127.0.0.1:8000/backendapp/categories/
>3. Retrieve only one Category: 127.0.0.1:8000/backendapp/categories/1
>4. Etc...
>
> However, when I try to implement the put and delete methods, I get stuck.
>
> For example :
> from django.views import View
>
> class CategoryView(View):
>  template_name = 'backendapp/pages/category/categories.html'
>
>  def get(self, request):
>   categories = Category.objects.all()
>   context = { 'categories': categories }
>   return render(request, self.template_name, context)
>
>  def post(self, request):
>   return
>
>  def delete(self, request, pk):
>   return
>
>  def put(self, request):
>   return
>
> I read through the Django documentation and found that Class-Based Views
> support HTTP requests: ["get", "post", "put", "patch", "delete", "head ",
> "options", "trace"].
>
> link:
> https://docs.djangoproject.com/en/5.0/ref/class-based-views/base/#django.views.generic.base.View
> 
>
> Despite this, I can't figure out how to do it.
>
> So I'm asking for your help to unblock me.
>
> I looked at the Django documentation and searched online for examples and
> tutorials on handling HTTP requests in class-based views. I also tried
> experimenting with adding the put and delete methods to my CategoryView
> view class, but without success. I expected to find resources that clearly
> explain how to integrate these queries into my Django application, as well
> as practical examples demonstrating their use. However, I haven't found a
> working solution and am now seeking help from the community to overcome
> this difficulty.
>
> --
> 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/b1ecd4a7-5946-4da5-80ae-5923b6648a70n%40googlegroups.com
> 
> .
>


-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyNsQdYWD4W_Mfr%3DMfdP-DrbYeWf0qAgWDEN6TDbVOpR7A%40mail.gmail.com.


Re: DRF Trailing Slah

2024-04-12 Thread Luis Zárate
Check your URL.py and append the slash, also take a look of
https://docs.djangoproject.com/en/5.0/ref/settings/#append-slash


El vie, 12 abr 2024 a las 15:40, MISHEL HANNA ()
escribió:

> Hello
> i have endpoint when add / to the end of it i can not send request it
> return this
> Not Found: /api/v1/properties/user/
> [12/Apr/2024 20:19:03] "GET /api/v1/properties/user/ HTTP/1.1" 404 23
>
> but when remove / from the end of it return success
> [12/Apr/2024 20:19:09] "GET /api/v1/properties/user HTTP/1.1" 200 635
>
>
> --
> 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/d5b533b0-e482-4db5-8a4d-ce925aefcbf4n%40googlegroups.com
> 
> .
>


-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyNc9sNk_6qBoF9X7wMbEYtoLmj_Qo-9mXdHyHNSAkTWVQ%40mail.gmail.com.


DRF Trailing Slah

2024-04-12 Thread MISHEL HANNA
Hello
i have endpoint when add / to the end of it i can not send request it 
return this 
Not Found: /api/v1/properties/user/
[12/Apr/2024 20:19:03] "GET /api/v1/properties/user/ HTTP/1.1" 404 23

but when remove / from the end of it return success
[12/Apr/2024 20:19:09] "GET /api/v1/properties/user HTTP/1.1" 200 635


-- 
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/d5b533b0-e482-4db5-8a4d-ce925aefcbf4n%40googlegroups.com.


How to effectively use PUT and DELETE HTTP methods in Django Class-Based Views?

2024-04-12 Thread Mamadou Alpha Bah
 

I'm setting up a CRUD system with Django, using Class-Based Views. 
Currently I'm trying to figure out how to handle HTTP PUT and DELETE 
requests in my application. Despite searching the Django documentation 
extensively, I'm having trouble finding concrete examples and clear 
explanations of how to submit these types of queries to a class-based view.

I created a view class named CategoryView, extending from: 
django.views.View, in which I implemented the get and post methods 
successfully. And I want to build my urls like this:

   1. New Category: 127.0.0.1:8000/backendapp/categories/create 
   2. List all Category: 127.0.0.1:8000/backendapp/categories/ 
   3. Retrieve only one Category: 127.0.0.1:8000/backendapp/categories/1 
   4. Etc... 

However, when I try to implement the put and delete methods, I get stuck.

For example :
from django.views import View 

class CategoryView(View):
 template_name = 'backendapp/pages/category/categories.html'
 
 def get(self, request):
  categories = Category.objects.all()
  context = { 'categories': categories }
  return render(request, self.template_name, context)

 def post(self, request):
  return

 def delete(self, request, pk):
  return

 def put(self, request):
  return

I read through the Django documentation and found that Class-Based Views 
support HTTP requests: ["get", "post", "put", "patch", "delete", "head ", 
"options", "trace"].

link: 
https://docs.djangoproject.com/en/5.0/ref/class-based-views/base/#django.views.generic.base.View
 


Despite this, I can't figure out how to do it.

So I'm asking for your help to unblock me.

I looked at the Django documentation and searched online for examples and 
tutorials on handling HTTP requests in class-based views. I also tried 
experimenting with adding the put and delete methods to my CategoryView 
view class, but without success. I expected to find resources that clearly 
explain how to integrate these queries into my Django application, as well 
as practical examples demonstrating their use. However, I haven't found a 
working solution and am now seeking help from the community to overcome 
this difficulty.

-- 
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/b1ecd4a7-5946-4da5-80ae-5923b6648a70n%40googlegroups.com.


Is the collect static of ManifestStaticFilesStorage buggy?

2024-04-12 Thread run_the_race
Hi All,

When collecting the *wc-take-message.min.js* file, it fails to find the 
file *x-field.min.css* that is in the correct place.

This is my manifest storage that enables hashing JS modules imports:




*from django.contrib.staticfiles.storage import 
ManifestStaticFilesStorage,class 
LcManifestStaticFilesStorage(ManifestStaticFilesStorage):
support_js_module_import_aggregation = True*

However  when running collect static  it fails:

Heres a snippet from `*comms/wcapp/wc-take-message.min.js*`:
*import w from"/static/skin/skin/x-field.min.css";import u 
from"/static/common/skin/*

And heres the error during collect static:

Post-processing 'comms/wcapp/wc-take-message.min.js' failed!

Traceback (most recent call last):
  File "/home/michael/project/src/manage.py", line 57, in 
run()
  File "/home/michael/project/src/manage.py", line 49, in run
execute_from_command_line(sys.argv)
  File 
"/home/michael/.venv/project/lib/python3.11/site-packages/django/core/management/__init__.py",
 
line 442, in execute_from_command_line
utility.execute()
  File 
"/home/michael/.venv/project/lib/python3.11/site-packages/django/core/management/__init__.py",
 
line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/home/michael/.venv/project/lib/python3.11/site-packages/django/core/management/base.py",
 
line 413, in run_from_argv
self.execute(*args, **cmd_options)
  File 
"/home/michael/.venv/project/lib/python3.11/site-packages/django/core/management/base.py",
 
line 459, in execute
output = self.handle(*args, **options)
 ^
  File 
"/home/michael/project/src/core/app/base/management/commands/deploy.py", 
line 84, in handle
call_command('collectstatic', '--noinput', '--clear', '--verbosity', 
'0')
  File 
"/home/michael/.venv/project/lib/python3.11/site-packages/django/core/management/__init__.py",
 
line 194, in call_command
return command.execute(*args, **defaults)
   ^^
  File 
"/home/michael/.venv/project/lib/python3.11/site-packages/django/core/management/base.py",
 
line 459, in execute
output = self.handle(*args, **options)
 ^
  File 
"/home/michael/.venv/project/lib/python3.11/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
 
line 209, in handle
collected = self.collect()
^^
  File 
"/home/michael/.venv/project/lib/python3.11/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
 
line 154, in collect
raise processed
  File 
"/home/michael/.venv/project/lib/python3.11/site-packages/django/contrib/staticfiles/storage.py",
 
line 375, in _post_process
content = pattern.sub(converter, content)
  ^^^
  File 
"/home/michael/.venv/project/lib/python3.11/site-packages/django/contrib/staticfiles/storage.py",
 
line 249, in converter
hashed_url = self._url(
 ^^
  File 
"/home/michael/.venv/project/lib/python3.11/site-packages/django/contrib/staticfiles/storage.py",
 
line 182, in _url
hashed_name = hashed_name_func(*args)
  ^^^
  File 
"/home/michael/.venv/project/lib/python3.11/site-packages/django/contrib/staticfiles/storage.py",
 
line 425, in _stored_name
cache_name = self.clean_name(self.hashed_name(name))
 ^^
  File 
"/home/michael/.venv/project/lib/python3.11/site-packages/django/contrib/staticfiles/storage.py",
 
line 143, in hashed_name
raise ValueError(
ValueError: The file 'skin/skin/x-field.min.c6fe58e9f403.css' could not be 
found with .


But the file exists in the collect static spot:
:/var/www/example.com/public/static/skin/skin$ ls -la x-field.min.css
-rw-r--r-- 1 michael www-data 6387 Apr 12 08:07 x-field.min.css

Not sure why it does not see the file it's looking for?

-- 
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/1407930a-6286-4670-af77-e3800080a6f7n%40googlegroups.com.


Re: Help on Creating a Superuser account on render.

2024-04-11 Thread ALINDA Fortunate
Thanks so much for your assistance indeed the issue was I had failed to
visualise my data on railway since I am using an external database. A
friend helped understand that and now I am able to access my admin panel.

Thanks everyone.

On Wed, 10 Apr 2024, 19:59 Luis Zárate,  wrote:

> Maybe something like
>
> python manage.py shell -c "from django.contrib.auth.hashers import
> make_password;from django.contrib.auth.models import User; admin =
> User(username='username', email='exam...@example.com',
> password=make_password('password'),
> is_superuser=True,is_staff=True);admin.save()"
>
>
>
> El dom, 7 abr 2024 a las 2:13, ALINDA Fortunate (<
> alindafortuna...@gmail.com>) escribió:
>
>> It's my external database is postgres on railway.
>>
>> Let me try your opinion and I see.
>>
>> On Sat, 6 Apr 2024, 20:33 Aniket Raj Singh, 
>> wrote:
>>
>>> So you have used render to host your application, you might have
>>> connected an external database (postgreSQL or any other) you might have
>>> used the environment setup to set the database up with the postgreSQL
>>> hosted either on render itself or on a different server, just connect the
>>> database with your application on your local host and create a super user
>>> since the database is same on the render's server's application the
>>> superuser will be same as the superuser you created on the local server
>>> thus you can access the admin panel
>>>
>>>
>>> On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:
>>>
 Hello I have successfully a django project on render but i have failed
 to access the admin panel

 Any idea on how to create a superuser account on a free tier of render

 Below is my build.sh file
 #!/usr/bin/env bash
 # Exit on error
 set -o errexit



 # Modify this line as needed for your package manager (pip, poetry,
 etc.)
 pip install -r requirements.txt

 # Convert static asset files
 python manage.py collectstatic --no-input

 # Apply any outstanding database migrations
 python manage.py migrate

 if [[ $CREATE_SUPERUSER ]];
 then
   python world_champ_2022/manage.py createsuperuser --no-input
 fi






 --
 ALINDA Fortunate
 Graduate Of Computer Science
 Gulu University
 Passionate about Software Development in Python
 If you can't explain it simply, you don't understand it well enough.
 alindafo...@gmail.com.
 +256 774339676 <+256%20774%20339676> / +256 702910041
 <+256%20702%20910041>
 Kagadi.

>>> --
>>> 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/9dabff6a-7f5a-4d30-a097-a128f68a6feen%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/CAPifpCsa%2BrmS3OWiycH_309ROvMcazv2Z_E76UcZiZKEb%3D3YPg%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> "La utopía sirve para caminar" Fernando Birri
>
>
> --
> 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/CAG%2B5VyOcJ%2BeL3dTgVHfgW1tjH5p6-qHUzKq83t3z8xK7iNFGdQ%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/CAPifpCtM6bEOREKdmzD5-XOS7PZ4p6C9KTeMKt04FzS3yNZ8cw%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-04-11 Thread Clinton Paul
hello is the position still available?

On Tue, Apr 2, 2024 at 8:19 PM Abhishek J 
wrote:

> Dear Developers,
>
> I need to build an android and IOS phone dialer similar to Truecaller.
>
> We are seeking experienced and dedicated candidates who are proficient in
> Django and possess a keen interest in contributing to this impactful
> initiative.
>
> We look forward to the opportunity to collaborate with talented
> individuals who are passionate about creating innovative solutions in the
> education sector.
>
> Thank you for considering this opportunity.
>
> --
> 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/CAKkngwDHBygGho4gkHRhNkpVJf_d2UOkHQ%3DemN3BtcFSVRU8sA%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/CABA3NGW%3DABUCrr0WFw7kPqsCAyYb3Qj7bnPA6%3D908am0GkuM7g%40mail.gmail.com.


Re: Help on Creating a Superuser account on render.

2024-04-10 Thread Luis Zárate
Maybe something like

python manage.py shell -c "from django.contrib.auth.hashers import
make_password;from django.contrib.auth.models import User; admin =
User(username='username', email='exam...@example.com',
password=make_password('password'),
is_superuser=True,is_staff=True);admin.save()"



El dom, 7 abr 2024 a las 2:13, ALINDA Fortunate ()
escribió:

> It's my external database is postgres on railway.
>
> Let me try your opinion and I see.
>
> On Sat, 6 Apr 2024, 20:33 Aniket Raj Singh, 
> wrote:
>
>> So you have used render to host your application, you might have
>> connected an external database (postgreSQL or any other) you might have
>> used the environment setup to set the database up with the postgreSQL
>> hosted either on render itself or on a different server, just connect the
>> database with your application on your local host and create a super user
>> since the database is same on the render's server's application the
>> superuser will be same as the superuser you created on the local server
>> thus you can access the admin panel
>>
>>
>> On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:
>>
>>> Hello I have successfully a django project on render but i have failed
>>> to access the admin panel
>>>
>>> Any idea on how to create a superuser account on a free tier of render
>>>
>>> Below is my build.sh file
>>> #!/usr/bin/env bash
>>> # Exit on error
>>> set -o errexit
>>>
>>>
>>>
>>> # Modify this line as needed for your package manager (pip, poetry, etc.)
>>> pip install -r requirements.txt
>>>
>>> # Convert static asset files
>>> python manage.py collectstatic --no-input
>>>
>>> # Apply any outstanding database migrations
>>> python manage.py migrate
>>>
>>> if [[ $CREATE_SUPERUSER ]];
>>> then
>>>   python world_champ_2022/manage.py createsuperuser --no-input
>>> fi
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> ALINDA Fortunate
>>> Graduate Of Computer Science
>>> Gulu University
>>> Passionate about Software Development in Python
>>> If you can't explain it simply, you don't understand it well enough.
>>> alindafo...@gmail.com.
>>> +256 774339676 <+256%20774%20339676> / +256 702910041
>>> <+256%20702%20910041>
>>> Kagadi.
>>>
>> --
>> 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/9dabff6a-7f5a-4d30-a097-a128f68a6feen%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/CAPifpCsa%2BrmS3OWiycH_309ROvMcazv2Z_E76UcZiZKEb%3D3YPg%40mail.gmail.com
> 
> .
>


-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyOcJ%2BeL3dTgVHfgW1tjH5p6-qHUzKq83t3z8xK7iNFGdQ%40mail.gmail.com.


Email verification in Django + Djoser

2024-04-10 Thread Okkert Joubert
I have a register page in my django app and I am using djoser for the end 
point to create and users etc, when I register with an email ending in .com 
(e.g. gmail.com) it works but when I enter an email ending with .co.za it 
does not work

-- 
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/0acfc39c-f32c-42e4-9be0-ac65c06fn%40googlegroups.com.


Re: Challenge hosting a django project on render

2024-04-07 Thread manohar chundru
can

On Thu, 4 Apr 2024, 9:12 pm ALINDA Fortunate, 
wrote:

> Hello team I am finding challenges in hosting my project on render it
> shows the webservice is live and it brings this error any help
>
> Error during template rendering
>
> In template /opt/render/project/src/templates/home.html, error at line *9*
> relation "pages_landingpage" does not exist LINE 1: ...velopment",
> "pages_landingpage"."philosophy" FROM "pages_lan... ^
> 1 
> 2 {% extends "_base.html" %}
> 3 {% load static %}
> 4
> 5 {% block title %}Home{% endblock title %}
> 6
> 7 {% block content %}
> 8 
> 9 {% for landingpage in homepage_list %}
> 10 
> 11 {{landingpage.title}}
> 12 
> 13
> 14 {% if user.is_authenticated %}
> 15 Hi {{ user.email }}! Your most welcome.
> 16 {% else %}
> 17 You are not logged in
> 18 Log In
> 19 {% endif %}
>
> But locally its running well
>
> ALINDA Fortunate
> Graduate Of Computer Science
> Gulu University
> Passionate about Software Development in Python
> If you can't explain it simply, you don't understand it well enough.
> alindafortuna...@gmail.com .
> +256 774339676 / +256 702910041
> Kagadi.
>
> --
> 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/CAPifpCv1kncia2sv%2BCa3wGfnOa6WWxor-XMishcLRCn8TaGcCg%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/CAH2L_yV%2BmOqax%3Di2cUUw97UEPt22rE62mp8H7MDsYp5PF4Hg-g%40mail.gmail.com.


Re: Help on Creating a Superuser account on render.

2024-04-07 Thread ALINDA Fortunate
It's my external database is postgres on railway.

Let me try your opinion and I see.

On Sat, 6 Apr 2024, 20:33 Aniket Raj Singh, 
wrote:

> So you have used render to host your application, you might have connected
> an external database (postgreSQL or any other) you might have used the
> environment setup to set the database up with the postgreSQL hosted either
> on render itself or on a different server, just connect the database with
> your application on your local host and create a super user since the
> database is same on the render's server's application the superuser will be
> same as the superuser you created on the local server thus you can access
> the admin panel
>
>
> On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:
>
>> Hello I have successfully a django project on render but i have failed to
>> access the admin panel
>>
>> Any idea on how to create a superuser account on a free tier of render
>>
>> Below is my build.sh file
>> #!/usr/bin/env bash
>> # Exit on error
>> set -o errexit
>>
>>
>>
>> # Modify this line as needed for your package manager (pip, poetry, etc.)
>> pip install -r requirements.txt
>>
>> # Convert static asset files
>> python manage.py collectstatic --no-input
>>
>> # Apply any outstanding database migrations
>> python manage.py migrate
>>
>> if [[ $CREATE_SUPERUSER ]];
>> then
>>   python world_champ_2022/manage.py createsuperuser --no-input
>> fi
>>
>>
>>
>>
>>
>>
>> --
>> ALINDA Fortunate
>> Graduate Of Computer Science
>> Gulu University
>> Passionate about Software Development in Python
>> If you can't explain it simply, you don't understand it well enough.
>> alindafo...@gmail.com.
>> +256 774339676 <+256%20774%20339676> / +256 702910041
>> <+256%20702%20910041>
>> Kagadi.
>>
> --
> 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/9dabff6a-7f5a-4d30-a097-a128f68a6feen%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/CAPifpCsa%2BrmS3OWiycH_309ROvMcazv2Z_E76UcZiZKEb%3D3YPg%40mail.gmail.com.


Re: Help on Creating a Superuser account on render.

2024-04-06 Thread Aniket Raj Singh
So you have used render to host your application, you might have connected 
an external database (postgreSQL or any other) you might have used the 
environment setup to set the database up with the postgreSQL hosted either 
on render itself or on a different server, just connect the database with 
your application on your local host and create a super user since the 
database is same on the render's server's application the superuser will be 
same as the superuser you created on the local server thus you can access 
the admin panel


On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:

> Hello I have successfully a django project on render but i have failed to 
> access the admin panel 
>
> Any idea on how to create a superuser account on a free tier of render
>
> Below is my build.sh file
> #!/usr/bin/env bash
> # Exit on error
> set -o errexit
>
>
>
> # Modify this line as needed for your package manager (pip, poetry, etc.)
> pip install -r requirements.txt
>
> # Convert static asset files
> python manage.py collectstatic --no-input
>
> # Apply any outstanding database migrations
> python manage.py migrate
>
> if [[ $CREATE_SUPERUSER ]];
> then
>   python world_champ_2022/manage.py createsuperuser --no-input
> fi
>
>
>
>
>
>
> -- 
> ALINDA Fortunate
> Graduate Of Computer Science
> Gulu University
> Passionate about Software Development in Python
> If you can't explain it simply, you don't understand it well enough.
> alindafo...@gmail.com.
> +256 774339676 <+256%20774%20339676> / +256 702910041 
> <+256%20702%20910041>
> Kagadi.
>

-- 
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/9dabff6a-7f5a-4d30-a097-a128f68a6feen%40googlegroups.com.


Help on Creating a Superuser account on render.

2024-04-06 Thread ALINDA Fortunate
Hello I have successfully a django project on render but i have failed to
access the admin panel

Any idea on how to create a superuser account on a free tier of render

Below is my build.sh file
#!/usr/bin/env bash
# Exit on error
set -o errexit



# Modify this line as needed for your package manager (pip, poetry, etc.)
pip install -r requirements.txt

# Convert static asset files
python manage.py collectstatic --no-input

# Apply any outstanding database migrations
python manage.py migrate

if [[ $CREATE_SUPERUSER ]];
then
  python world_champ_2022/manage.py createsuperuser --no-input
fi






-- 
ALINDA Fortunate
Graduate Of Computer Science
Gulu University
Passionate about Software Development in Python
If you can't explain it simply, you don't understand it well enough.
alindafortuna...@gmail.com .
+256 774339676 / +256 702910041
Kagadi.

-- 
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/CAPifpCscJ_H1hAHjgw68iDDyb4gem3Ut7Zw3Ps4uJNqqhFnzLA%40mail.gmail.com.


Re: Challenge hosting a django project on render

2024-04-05 Thread ALINDA Fortunate
Thanks so much everyone it was rectified indeed the issue was with
migrations.

On Fri, 5 Apr 2024, 15:58 Franky Bonanno,  wrote:

> Makemigrations then migrate
>
> Il ven 5 apr 2024, 10:24 Luciano Martins (luxu)  ha
> scritto:
>
>> Did you run the migrations?
>>
>> Em quinta-feira, 4 de abril de 2024 às 12:43:02 UTC-3, ALINDA Fortunate
>> escreveu:
>>
>>> Hello team I am finding challenges in hosting my project on render it
>>> shows the webservice is live and it brings this error any help
>>>
>>> Error during template rendering
>>>
>>> In template /opt/render/project/src/templates/home.html, error at line
>>> *9*
>>> relation "pages_landingpage" does not exist LINE 1: ...velopment",
>>> "pages_landingpage"."philosophy" FROM "pages_lan... ^
>>> 1 
>>> 2 {% extends "_base.html" %}
>>> 3 {% load static %}
>>> 4
>>> 5 {% block title %}Home{% endblock title %}
>>> 6
>>> 7 {% block content %}
>>> 8 
>>> 9 {% for landingpage in homepage_list %}
>>> 10 
>>> 11 {{landingpage.title}}
>>> 12 
>>> 13
>>> 14 {% if user.is_authenticated %}
>>> 15 Hi {{ user.email }}! Your most welcome.
>>> 16 {% else %}
>>> 17 You are not logged in
>>> 18 Log In
>>> 19 {% endif %}
>>>
>>> But locally its running well
>>>
>>> ALINDA Fortunate
>>> Graduate Of Computer Science
>>> Gulu University
>>> Passionate about Software Development in Python
>>> If you can't explain it simply, you don't understand it well enough.
>>> alindafo...@gmail.com.
>>> +256 774339676 <+256%20774%20339676> / +256 702910041
>>> <+256%20702%20910041>
>>> Kagadi.
>>>
>> --
>> 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/e2f1866e-70c2-4cf3-a9cb-af9f2eb7ddc1n%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/CAD0KF_K6iV8dWd-JE1a84zyDwYVPKvQXxPWJQ5Ec31YTTLra1A%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/CAPifpCuhW%3DGC%3DRyo4K2A0vK9JfbmqBUkXMa%3DifNvqB%3DrBkAuSQ%40mail.gmail.com.


Re: Challenge hosting a django project on render

2024-04-05 Thread Franky Bonanno
Makemigrations then migrate

Il ven 5 apr 2024, 10:24 Luciano Martins (luxu)  ha
scritto:

> Did you run the migrations?
>
> Em quinta-feira, 4 de abril de 2024 às 12:43:02 UTC-3, ALINDA Fortunate
> escreveu:
>
>> Hello team I am finding challenges in hosting my project on render it
>> shows the webservice is live and it brings this error any help
>>
>> Error during template rendering
>>
>> In template /opt/render/project/src/templates/home.html, error at line
>> *9*
>> relation "pages_landingpage" does not exist LINE 1: ...velopment",
>> "pages_landingpage"."philosophy" FROM "pages_lan... ^
>> 1 
>> 2 {% extends "_base.html" %}
>> 3 {% load static %}
>> 4
>> 5 {% block title %}Home{% endblock title %}
>> 6
>> 7 {% block content %}
>> 8 
>> 9 {% for landingpage in homepage_list %}
>> 10 
>> 11 {{landingpage.title}}
>> 12 
>> 13
>> 14 {% if user.is_authenticated %}
>> 15 Hi {{ user.email }}! Your most welcome.
>> 16 {% else %}
>> 17 You are not logged in
>> 18 Log In
>> 19 {% endif %}
>>
>> But locally its running well
>>
>> ALINDA Fortunate
>> Graduate Of Computer Science
>> Gulu University
>> Passionate about Software Development in Python
>> If you can't explain it simply, you don't understand it well enough.
>> alindafo...@gmail.com.
>> +256 774339676 <+256%20774%20339676> / +256 702910041
>> <+256%20702%20910041>
>> Kagadi.
>>
> --
> 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/e2f1866e-70c2-4cf3-a9cb-af9f2eb7ddc1n%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/CAD0KF_K6iV8dWd-JE1a84zyDwYVPKvQXxPWJQ5Ec31YTTLra1A%40mail.gmail.com.


Re: Finding a job

2024-04-05 Thread Pearson Tech
I'm sorry to inform you but I'm not recruiting, I don't have open projects
and I'm not looking for developers, even so I appreciate it.

On Wed, Apr 3, 2024 at 12:38 PM Ganilson Garcia 
wrote:

> Dear recruiters!
>
> I hope this message finds you well. I am reaching out to express my
> interest in job opportunities in the Fullstack development field,
> particularly those that may align with my experience in Python, ExpressJs,
> and Django Rest Framework.
>
> With over 20 years of age and extensive experience in web development, I
> have acquired solid skills in both back-end and front-end development. My
> experience includes building scalable and high-quality web applications
> using modern technologies and best software engineering practices.
>
> My experience with Django Rest Framework has provided me with a deep
> understanding of RESTful API development, while my experience with
> ExpressJs complements this skill within the JavaScript ecosystem. I am
> confident in my ability to significantly contribute to challenging
> projects, delivering robust and efficient solutions.
>
> In addition to my technical skills, I am known for my friendliness and
> ability to work well in teams. My effective communication and willingness
> to collaborate have made me a valuable member of previous development teams.
>
> While my English is intermediate, I am committed to improving it and am
> willing to dedicate myself to courses and training to enhance my language
> skills.
>
> I am looking forward to discussing any potential opportunities you may
> have available and would greatly appreciate the opportunity to demonstrate
> how my skills and experience can benefit your clients or your company. I am
> available for interviews at any time convenient for you.
>
> Thank you in advance for your consideration. Please feel free to contact
> me via email or phone to discuss any potential opportunities.
>
> Sincerely, Ganilson Garcia. Tel: +244 946808054
>
> --
> 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/a64a05b9-78c4-4acb-9063-eb37411c9c64n%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/CA%2Bpcz3XEi8ANS3Y01Wet61Bq%2Bj_h-5GfY1GELGg7c_F%2BM332XA%40mail.gmail.com.


Re: Django Developer with Prior Experience developing a dialer required

2024-04-05 Thread Abdulrahman Abbas
Hi I'm very much interested to contribute to this project below is my CV


On Wed, Apr 3, 2024, 14:11 Abhishek J  wrote:

> Dear Developers,
>
> I need to build an android and IOS phone dialer similar to Truecaller.
>
> We are seeking experienced and dedicated candidates who are proficient in
> Django and possess a keen interest in contributing to this impactful
> initiative.
>
> We look forward to the opportunity to collaborate with talented
> individuals who are passionate about creating innovative solutions in the
> education sector.
>
> Thank you for considering this opportunity.
>
> --
> 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/CAKkngwCYo%2By%2Bzq0ph%2B%3D4tPZ1%2BWM3uhTtAu63-jP0VNVQ6xkmHg%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/CAGGqo0PZkC%2BhjXDnTC6GuBwyZVqReVebaXHVvvY2Qn%3DDRy%3DMQg%40mail.gmail.com.


Abdulrahman Abbas CV (2).pdf
Description: Adobe PDF document


Re: Challenge hosting a django project on render

2024-04-05 Thread Luciano Martins (luxu)
Did you run the migrations?

Em quinta-feira, 4 de abril de 2024 às 12:43:02 UTC-3, ALINDA Fortunate 
escreveu:

> Hello team I am finding challenges in hosting my project on render it 
> shows the webservice is live and it brings this error any help
>
> Error during template rendering
>
> In template /opt/render/project/src/templates/home.html, error at line *9*
> relation "pages_landingpage" does not exist LINE 1: ...velopment", 
> "pages_landingpage"."philosophy" FROM "pages_lan... ^
> 1  
> 2 {% extends "_base.html" %} 
> 3 {% load static %} 
> 4 
> 5 {% block title %}Home{% endblock title %} 
> 6 
> 7 {% block content %} 
> 8  
> 9 {% for landingpage in homepage_list %} 
> 10  
> 11 {{landingpage.title}} 
> 12  
> 13 
> 14 {% if user.is_authenticated %} 
> 15 Hi {{ user.email }}! Your most welcome. 
> 16 {% else %} 
> 17 You are not logged in 
> 18 Log In 
> 19 {% endif %}
>
> But locally its running well
>
> ALINDA Fortunate
> Graduate Of Computer Science
> Gulu University
> Passionate about Software Development in Python
> If you can't explain it simply, you don't understand it well enough.
> alindafo...@gmail.com.
> +256 774339676 <+256%20774%20339676> / +256 702910041 
> <+256%20702%20910041>
> Kagadi.
>

-- 
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/e2f1866e-70c2-4cf3-a9cb-af9f2eb7ddc1n%40googlegroups.com.


Challenge hosting a django project on render

2024-04-04 Thread ALINDA Fortunate
Hello team I am finding challenges in hosting my project on render it shows
the webservice is live and it brings this error any help

Error during template rendering

In template /opt/render/project/src/templates/home.html, error at line *9*
relation "pages_landingpage" does not exist LINE 1: ...velopment",
"pages_landingpage"."philosophy" FROM "pages_lan... ^
1 
2 {% extends "_base.html" %}
3 {% load static %}
4
5 {% block title %}Home{% endblock title %}
6
7 {% block content %}
8 
9 {% for landingpage in homepage_list %}
10 
11 {{landingpage.title}}
12 
13
14 {% if user.is_authenticated %}
15 Hi {{ user.email }}! Your most welcome.
16 {% else %}
17 You are not logged in
18 Log In
19 {% endif %}

But locally its running well

ALINDA Fortunate
Graduate Of Computer Science
Gulu University
Passionate about Software Development in Python
If you can't explain it simply, you don't understand it well enough.
alindafortuna...@gmail.com .
+256 774339676 / +256 702910041
Kagadi.

-- 
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/CAPifpCv1kncia2sv%2BCa3wGfnOa6WWxor-XMishcLRCn8TaGcCg%40mail.gmail.com.


Finding a job

2024-04-03 Thread Ganilson Garcia


Dear recruiters!

I hope this message finds you well. I am reaching out to express my 
interest in job opportunities in the Fullstack development field, 
particularly those that may align with my experience in Python, ExpressJs, 
and Django Rest Framework.

With over 20 years of age and extensive experience in web development, I 
have acquired solid skills in both back-end and front-end development. My 
experience includes building scalable and high-quality web applications 
using modern technologies and best software engineering practices.

My experience with Django Rest Framework has provided me with a deep 
understanding of RESTful API development, while my experience with 
ExpressJs complements this skill within the JavaScript ecosystem. I am 
confident in my ability to significantly contribute to challenging 
projects, delivering robust and efficient solutions.

In addition to my technical skills, I am known for my friendliness and 
ability to work well in teams. My effective communication and willingness 
to collaborate have made me a valuable member of previous development teams.

While my English is intermediate, I am committed to improving it and am 
willing to dedicate myself to courses and training to enhance my language 
skills.

I am looking forward to discussing any potential opportunities you may have 
available and would greatly appreciate the opportunity to demonstrate how 
my skills and experience can benefit your clients or your company. I am 
available for interviews at any time convenient for you.

Thank you in advance for your consideration. Please feel free to contact me 
via email or phone to discuss any potential opportunities.

Sincerely, Ganilson Garcia. Tel: +244 946808054

-- 
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/a64a05b9-78c4-4acb-9063-eb37411c9c64n%40googlegroups.com.


My CV (1).pdf
Description: Adobe PDF document


Django bugfix release issued: 5.0.4

2024-04-03 Thread Natalia Bidart
Details are available on the Django project weblog:

https://www.djangoproject.com/weblog/2024/apr/03/bugfix-release/

-- 
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%2BfOnFaCFdiy_ZQoP%3DOq2imzJr%2BgwmR5Ptfcqs0eTufjiztCfQ%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-04-03 Thread SAHIL
hi there,
i am interested in this position. here is my github link
https://github.com/immodded

On Tue, 2 Apr 2024, 10:49 pm Abhishek J, 
wrote:

> Dear Developers,
>
> I need to build an android and IOS phone dialer similar to Truecaller.
>
> We are seeking experienced and dedicated candidates who are proficient in
> Django and possess a keen interest in contributing to this impactful
> initiative.
>
> We look forward to the opportunity to collaborate with talented
> individuals who are passionate about creating innovative solutions in the
> education sector.
>
> Thank you for considering this opportunity.
>
> --
> 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/CAKkngwDHBygGho4gkHRhNkpVJf_d2UOkHQ%3DemN3BtcFSVRU8sA%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/CABfqMXDT6LndEKysb5eB_9DN_QPoTKGXbPu7C-HJ60OOtkw7fQ%40mail.gmail.com.


Django Developer with Prior Experience developing a dialer required

2024-04-03 Thread Abhishek J
Dear Developers,

I need to build an android and IOS phone dialer similar to Truecaller.

We are seeking experienced and dedicated candidates who are proficient in
Django and possess a keen interest in contributing to this impactful
initiative.

We look forward to the opportunity to collaborate with talented individuals
who are passionate about creating innovative solutions in the education
sector.

Thank you for considering this opportunity.

-- 
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/CAKkngwCYo%2By%2Bzq0ph%2B%3D4tPZ1%2BWM3uhTtAu63-jP0VNVQ6xkmHg%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-04-03 Thread Ahmed Shrief
I am interested in this position

On Tue, Apr 2, 2024, 7:20 PM Abhishek J 
wrote:

> Dear Developers,
>
> I need to build an android and IOS phone dialer similar to Truecaller.
>
> We are seeking experienced and dedicated candidates who are proficient in
> Django and possess a keen interest in contributing to this impactful
> initiative.
>
> We look forward to the opportunity to collaborate with talented
> individuals who are passionate about creating innovative solutions in the
> education sector.
>
> Thank you for considering this opportunity.
>
> --
> 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/CAKkngwDHBygGho4gkHRhNkpVJf_d2UOkHQ%3DemN3BtcFSVRU8sA%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/CAHYa9ySSr1SBMXPkiSAZFqJFysPGk-_229DY_BVnH3HYi-xx4Q%40mail.gmail.com.


Re: ANYONE CAN HELP ME

2024-04-03 Thread Miroslav Milic
Hi,

Here is the link to the Django docs where it is explained how to handle
multiple file uploads with FileInput. Try to use the example from the docs
as a starting point.

https://docs.djangoproject.com/en/5.0/topics/http/file-uploads/#uploading-multiple-files

Best regards,
--
Miroslav Milic


On Tue, Apr 2, 2024 at 7:20 PM arts maxwell Anderson <
arts.mawellanderson@gmail.com> wrote:

> hello i have this error , i want to uppload multiple django image
> ValueError: FileInput doesn't support uploading multiple files.
> any one can help me
>
> class FormImages(ModelForm):
> multiple_image= forms.ImageField(widget=forms.FileInput(attrs= {
> 'multiple': True}))
>
> class Meta:
>
> model = Images
> fields=['multiple_image']
>
>
> #create prodcut in function
> def create_product(request):
> form_image = FormImages()
> form = FormCretaeProdcut()
>
> if request.method == 'POST':
> files = request.FILES.getlist('multiple_image')
> form = FormCretaeProdcut(request.POST, request.FILES)
> if form.is_valid():
> product = form.save(commit=False)
> product.save()
> product.user = request.user
> product.save()
> for file in files :
> Images.objects.create(product=product , images=file)
> else:
> form = FormCretaeProdcut()
> return render(request, 'create_product.html', {'form':form, 'i_form':
> form_image})
>
> --
> 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/c5cf6e10-68a1-4ceb-915d-df489db9b863n%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/CAEOWdJUwkZPdAAqAbayEp%3DWhY5i9vrDk6fVk5VEjkTxkegj-%2Bw%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-04-02 Thread Michael Onuekwusi
I'll be interested..django developer here

On Tue, Apr 2, 2024, 6:19 PM Abhishek J 
wrote:

> Dear Developers,
>
> I need to build an android and IOS phone dialer similar to Truecaller.
>
> We are seeking experienced and dedicated candidates who are proficient in
> Django and possess a keen interest in contributing to this impactful
> initiative.
>
> We look forward to the opportunity to collaborate with talented
> individuals who are passionate about creating innovative solutions in the
> education sector.
>
> Thank you for considering this opportunity.
>
> --
> 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/CAKkngwDHBygGho4gkHRhNkpVJf_d2UOkHQ%3DemN3BtcFSVRU8sA%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/CAPbPfKWVG1t_W79kmDeXTstMsd1ASjHF-qY%2BF3hN%3D4y1RqmLfw%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-04-02 Thread OSP PRO
I do build mobile apps with flutter and react native. And for python. I use
flask

On Tue, Apr 2, 2024, 9:03 PM gethsun misesi  wrote:

> Hey Abhishek,
>
> Thank you for reaching out and considering me for this exciting
> opportunity to work on the development of an Android and iOS phone dialer
> app similar to Truecaller.
>
> I am a dedicated and experienced Django developer with a strong passion
> for creating innovative solutions, particularly within the education
> sector. I believe my skills and expertise align well with the requirements
> of this project.
>
> I am eager to collaborate with your team and contribute to this impactful
> initiative. Please let me know the next steps in the process, such as
> providing more details about the project scope, timeline, and any specific
> technical requirements.
>
> Looking forward to the opportunity to work together.
>
> Best regards,
> Gethsun
>
> *GETHSUN MISESI*
>
> Young Leader
>
>
> Nairobi Garage | Ngong Road | Nairobi | Kenya
>
> Mobile +254 721913191, +254 7821913191
>
> gethsu...@gmail.com
>
>
> *The Race is not for the swift, but those who can endure it*
>
>
> On Tue, Apr 2, 2024 at 8:19 PM Abhishek J 
> wrote:
>
>> Dear Developers,
>>
>> I need to build an android and IOS phone dialer similar to Truecaller.
>>
>> We are seeking experienced and dedicated candidates who are proficient in
>> Django and possess a keen interest in contributing to this impactful
>> initiative.
>>
>> We look forward to the opportunity to collaborate with talented
>> individuals who are passionate about creating innovative solutions in the
>> education sector.
>>
>> Thank you for considering this opportunity.
>>
>> --
>> 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/CAKkngwDHBygGho4gkHRhNkpVJf_d2UOkHQ%3DemN3BtcFSVRU8sA%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/CAA5KizAE88pu-2_griLo%2B3R8%3DYVCmAy2_7rJM_3yN27Qk3hudg%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/CACng%3DegGK1APBC4cy8uaD1kzOrkh4zBKYEjR%2BU6%3D%3DGF7THM0cA%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-04-02 Thread gethsun misesi
Hey Abhishek,

Thank you for reaching out and considering me for this exciting opportunity
to work on the development of an Android and iOS phone dialer app similar
to Truecaller.

I am a dedicated and experienced Django developer with a strong passion for
creating innovative solutions, particularly within the education sector. I
believe my skills and expertise align well with the requirements of this
project.

I am eager to collaborate with your team and contribute to this impactful
initiative. Please let me know the next steps in the process, such as
providing more details about the project scope, timeline, and any specific
technical requirements.

Looking forward to the opportunity to work together.

Best regards,
Gethsun

*GETHSUN MISESI*

Young Leader


Nairobi Garage | Ngong Road | Nairobi | Kenya

Mobile +254 721913191, +254 7821913191

gethsu...@gmail.com


*The Race is not for the swift, but those who can endure it*


On Tue, Apr 2, 2024 at 8:19 PM Abhishek J 
wrote:

> Dear Developers,
>
> I need to build an android and IOS phone dialer similar to Truecaller.
>
> We are seeking experienced and dedicated candidates who are proficient in
> Django and possess a keen interest in contributing to this impactful
> initiative.
>
> We look forward to the opportunity to collaborate with talented
> individuals who are passionate about creating innovative solutions in the
> education sector.
>
> Thank you for considering this opportunity.
>
> --
> 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/CAKkngwDHBygGho4gkHRhNkpVJf_d2UOkHQ%3DemN3BtcFSVRU8sA%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/CAA5KizAE88pu-2_griLo%2B3R8%3DYVCmAy2_7rJM_3yN27Qk3hudg%40mail.gmail.com.


Freelance Opportunity : Django Developer for building A Dialer

2024-04-02 Thread Abhishek J
Dear Developers,

I need to build an android and IOS phone dialer similar to Truecaller.

We are seeking experienced and dedicated candidates who are proficient in
Django and possess a keen interest in contributing to this impactful
initiative.

We look forward to the opportunity to collaborate with talented individuals
who are passionate about creating innovative solutions in the education
sector.

Thank you for considering this opportunity.

-- 
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/CAKkngwDHBygGho4gkHRhNkpVJf_d2UOkHQ%3DemN3BtcFSVRU8sA%40mail.gmail.com.


ANYONE CAN HELP ME

2024-04-02 Thread arts maxwell Anderson
hello i have this error , i want to uppload multiple django image 
ValueError: FileInput doesn't support uploading multiple files.
any one can help me 

class FormImages(ModelForm):
multiple_image= forms.ImageField(widget=forms.FileInput(attrs= {
'multiple': True}))

class Meta:

model = Images
fields=['multiple_image']


#create prodcut in function 
def create_product(request):
form_image = FormImages()
form = FormCretaeProdcut()

if request.method == 'POST':
files = request.FILES.getlist('multiple_image')
form = FormCretaeProdcut(request.POST, request.FILES)
if form.is_valid():
product = form.save(commit=False)
product.save()
product.user = request.user
product.save()
for file in files :
Images.objects.create(product=product , images=file)
else:
form = FormCretaeProdcut()
return render(request, 'create_product.html', {'form':form, 'i_form':
form_image}) 

-- 
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/c5cf6e10-68a1-4ceb-915d-df489db9b863n%40googlegroups.com.


Re: Form data issue

2024-04-02 Thread Agar Joshua
explain this with more context and snippets of code

On Mon, Apr 1, 2024 at 4:04 PM Moises Anibal 
wrote:

> I can't for the life of me get my form data to pass from one view to
> another. I need help
>
> --
> 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/3e021782-d672-440c-a9ee-459369ebcea3n%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/CALHJg5KJY%2B3PyRwFVqNdPSTqwDgJASCmDWszTQT9ZtZeYVVr2w%40mail.gmail.com.


Re: Freelance Opportunity: Django Developer for School Management System Project

2024-04-02 Thread Bradie Poa
I doubt if this is a scam, I have seen this for almost months now and the
owner doesn't text back. So please, be careful, this guy might be just
jumping the rope .

On Mon, Apr 1, 2024, 16:04 Bethuel Thipe-Moukangwe 
wrote:

> Please receive my qualifications below.
> I am fully interested.
>
> On Mon, Apr 1, 2024 at 7:13 AM Amen Guda  wrote:
>
>> i am working on this kind of project currently let me work with you
>>
>> On Wed, Mar 27, 2024 at 7:58 PM Ravindra Magar 
>> wrote:
>>
>>> Dear Developers,
>>>
>>> I hope this message finds you well. My name is Ravindra, representing
>>> Gosiddhi Infotech. Currently, we have an exciting freelance opportunity
>>> available for a Django developer to collaborate on a significant project
>>> involving the creation of a comprehensive school management system.
>>>
>>> The project encompasses various tasks, including but not limited to:
>>>
>>> - Model development
>>> - API development
>>> - PDF report generation
>>> - Integration of Firebase messaging system
>>> - AWS bucket integration
>>> - Deployment on VPS server on Ubuntu 22 with open light speed
>>> - Maintenance and support
>>>
>>> We are seeking experienced and dedicated candidates who are proficient
>>> in Django and possess a keen interest in contributing to this impactful
>>> initiative.
>>>
>>> If you are interested, please share your CV along with your preferred
>>> compensation structure (per hour or per project charges) via WhatsApp at
>>> +917020728659 or email us at gosiddhiinfot...@gmail.com.
>>>
>>> We look forward to the opportunity to collaborate with talented
>>> individuals who are passionate about creating innovative solutions in the
>>> education sector.
>>>
>>> Thank you for considering this opportunity.
>>>
>>> Warm regards,
>>>
>>> Ravindra
>>> Gosiddhi Infotech
>>>
>>> --
>>> 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/CAHMymCDLM5X2y27BN7Cv12LgjwTTFzMihMhV5tAgWc9A0yRodg%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/CAJ8cwdvcg64YRae_1oMKhTcvGTVDzhuidgwzsVmxm7CEvW5LTg%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/CAKPeYLyyoxz3iHW2tKXUcn_fK3GG5q7dm00RBhT5K2e5zSWUgA%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/CAJkmis02FnQ4i5rGVNMKrZpnE%3DKknORa1hTB%2BC0dATdzP_oHNw%40mail.gmail.com.


Re: Freelance Opportunity: Django Developer for School Management System Project

2024-04-01 Thread yaamoussa-solution
I am interesting

Le lun. 1 avr. 2024 à 13:04, Bethuel Thipe-Moukangwe 
a écrit :

> Please receive my qualifications below.
> I am fully interested.
>
> On Mon, Apr 1, 2024 at 7:13 AM Amen Guda  wrote:
>
>> i am working on this kind of project currently let me work with you
>>
>> On Wed, Mar 27, 2024 at 7:58 PM Ravindra Magar 
>> wrote:
>>
>>> Dear Developers,
>>>
>>> I hope this message finds you well. My name is Ravindra, representing
>>> Gosiddhi Infotech. Currently, we have an exciting freelance opportunity
>>> available for a Django developer to collaborate on a significant project
>>> involving the creation of a comprehensive school management system.
>>>
>>> The project encompasses various tasks, including but not limited to:
>>>
>>> - Model development
>>> - API development
>>> - PDF report generation
>>> - Integration of Firebase messaging system
>>> - AWS bucket integration
>>> - Deployment on VPS server on Ubuntu 22 with open light speed
>>> - Maintenance and support
>>>
>>> We are seeking experienced and dedicated candidates who are proficient
>>> in Django and possess a keen interest in contributing to this impactful
>>> initiative.
>>>
>>> If you are interested, please share your CV along with your preferred
>>> compensation structure (per hour or per project charges) via WhatsApp at
>>> +917020728659 or email us at gosiddhiinfot...@gmail.com.
>>>
>>> We look forward to the opportunity to collaborate with talented
>>> individuals who are passionate about creating innovative solutions in the
>>> education sector.
>>>
>>> Thank you for considering this opportunity.
>>>
>>> Warm regards,
>>>
>>> Ravindra
>>> Gosiddhi Infotech
>>>
>>> --
>>> 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/CAHMymCDLM5X2y27BN7Cv12LgjwTTFzMihMhV5tAgWc9A0yRodg%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/CAJ8cwdvcg64YRae_1oMKhTcvGTVDzhuidgwzsVmxm7CEvW5LTg%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/CAKPeYLyyoxz3iHW2tKXUcn_fK3GG5q7dm00RBhT5K2e5zSWUgA%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/CAPs4bqH9nLKqRFgbOVM%2Bem3842PAe93U79awKVA5Y1DSrUMvew%40mail.gmail.com.


Form data issue

2024-04-01 Thread Moises Anibal
I can't for the life of me get my form data to pass from one view to 
another. I need help 

-- 
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/3e021782-d672-440c-a9ee-459369ebcea3n%40googlegroups.com.


  1   2   3   4   5   6   7   8   9   10   >