Re: Redesign of agricultural project with python django and next.js technologies.

2024-02-20 Thread Joshua Urasa
Am interested my no +255779764577

On Tue, Feb 20, 2024, 18:15 Kelvin Ugwu  wrote:

> Hello,
> I'm interested.
> My number is +2347084632922
>
> On Tue, Feb 20, 2024, 3:57 AM ronald munjoma  wrote:
>
>> Hi.
>>
>> I am interested.
>>
>> On Sun, Feb 18, 2024, 18:48 Jorge Bueno 
>> wrote:
>>
>>> The project:
>>>
>>> I am working on an exciting project that I think you may be interested
>>> in. It is an online marketplace, similar to the US farmers and livestock
>>> markets, but with a strong online focus. The project is going to be redone
>>> from 0 I have a very detailed backlog . Contributing to this real-world
>>> project will allow you to learn a lot while working with modern and
>>> relevant technologies.
>>>
>>> Technologies:
>>>
>>> We are using Python and Django for the backend, and Next.js for the
>>> frontend.
>>>
>>> Why collaborate.
>>>
>>> Learn and grow: The project is well organized, providing the opportunity
>>> to work with cutting-edge technologies.
>>> Impactful contribution: Your work will directly influence the success of
>>> the project.
>>> Community involvement: Join our passionate team committed to project
>>> excellence.
>>> How can you participate?
>>>
>>> I keep the repository private to avoid unnecessary distractions. Here's
>>> the link to the GitHub repository:
>>> https://github.com/Programacionpuntera/Marketplace-again. To add you, I
>>> will need your GitHub username. Also, I have created a WhatsApp group for
>>> the project. The more participants, the faster we will complete it! Feel
>>> free to share your phone number and I'll add you to the group. And just so
>>> you know exactly what I'm going to work on, I'm going to pass the entire
>>> backlog:
>>> E-commerce Website Development Requirements:
>>>
>>> Backend (Python and Django):
>>>
>>>
>>> User Registration:
>>>
>>> Create user models for farmers, ranchers, and consumers.
>>> Define the necessary attributes for each type of user in the data model.
>>> Implement CRUD (Create, Read, Update, Delete) functions for each user
>>> model.
>>> Implement authentication by email or phone number and password.
>>> Use a secure authentication library to store passwords securely.
>>> Implement logic to verify the authenticity of emails or phone numbers.
>>> Develop logic for user type selection and send verification emails or
>>> SMS.
>>> Create a user interface to select the user type during registration.
>>> Implement logic to send verification emails or SMS after registration.
>>>
>>>
>>> User Profiles:
>>>
>>> Create models and views to store basic information and specific details
>>> for farmers, ranchers, and consumers.
>>> Define the necessary attributes for each type of profile in the data
>>> model.
>>> Implement CRUD (Create, Read, Update, Delete) functions for each profile
>>> model.
>>> Create views to expose the profile data through an API.
>>>
>>>
>>> Product Listings:
>>>
>>> Implement models and views for products.
>>> Define the necessary attributes for each product in the data model.
>>> Implement CRUD functions (Create, Read, Update, Delete) for the product
>>> model.
>>> Create views to expose product data through an API.
>>> Develop the logic for farmers and ranchers to publish products.
>>> Implement logic to allow farmers and ranchers to publish new products.
>>> Ensure that only authenticated users can publish products.
>>>
>>>
>>> Search Engine and Filters:
>>>
>>> Implement a search engine that supports filters.
>>> Develop logic to search for products based on different criteria (e.g.,
>>> product name, category, price, etc.).
>>> Implement logic to filter search results based on different criteria
>>> (e.g., price range, location, etc.).
>>>
>>>
>>> Shopping Cart:
>>>
>>> Implement logic to add products to the cart.
>>> Develop logic to allow users to add products to the cart.
>>> Implement logic to update the quantity of a product in the cart.
>>> Create logic to remove products from the cart.
>>>
>>>
>>> Payment System:
>>>
>>> Integrate payment gateways (PayPal, cards, etc.).
>>> Implement the logic to process payments through different payment
>>> methods such as PayPal and credit/debit cards.
>>> Ensure that all transactions are secure and comply with relevant
>>> regulations.
>>> Generate invoices and manage sales commissions.
>>> Develop the logic to generate invoices automatically after each purchase.
>>> Implement logic to calculate and manage sales commissions.
>>>
>>>
>>> Ratings & Reviews:
>>>
>>> Implement a ratings and reviews system with moderation.
>>> Develop models to store ratings and reviews of products and sellers.
>>> Implement logic to allow users to post ratings and reviews.
>>> Create a moderation system to review and approve reviews before they are
>>> posted.
>>>
>>>
>>> Messaging:
>>>
>>> Create a messaging system between consumers and vendors.
>>> Develop models to store messages between consumers and vendors.
>>> Implement logic to allow users to send and receive messages.
>>>

Re: i learnt django basics but i want to learn django for become a master in django where can i get resourse

2023-08-10 Thread Joshua Urasa
documentation,youtube and books


On Thu, Aug 10, 2023 at 8:05 PM Peter Benjamin Ani <
benjaminpari...@gmail.com> wrote:

> Try getting the ebook (Django 4 by example) and build projects in it, from
> there u are good to go
>
> On Thu, 10 Aug 2023 at 18:01, Basith  wrote:
>
>> Any sample projects? any free resources?
>>
>> On Thursday, 10 August 2023 at 22:25:30 UTC+5:30 John Ayodele wrote:
>>
>>> Build a good portfolio and push them to GitHub
>>>
>>> On Thu, 10 Aug 2023 14:23 Peram Ashokkumar, 
>>> wrote:
>>>
 i have been  learning python fullstack since in the 3 months  in our
 institute that mentor tought only basic  but i want to get job as
 experience candidate because i have three years of gap please  any respond
 to 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...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/3d1a0e32-5417-42c9-a2ec-c3caee1e24f7n%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/ddfe7754-9b56-4664-9154-84d26a51fc53n%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/CAPxt_2XZnUk4cjnS%2BgdxAT6%3DuPsDb3qZqozCYx022ANA7uVpEw%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/CAErC-gO3fNEpbapxw%3D%2B35Q%2BHWE%2BZ-4NSQ1_a-wCABy_VoiSbFQ%40mail.gmail.com.


Re: Problems in Django login authentication

2023-07-31 Thread Joshua Urasa
To add up..I see others comments told you to abstractUser ... this is when
you need to modify the default user maybe to add up other fields in default
user like age or date but from you code above you didn't abstractUser so
follow my previous comment and am sure you code will work

On Sun, Jul 30, 2023, 11:27 Joshua Urasa  wrote:

> If you use default user there is no need to write your model because is
> there by default so what you need to do create is form.py and inside it
> import usercreationform from then that form import to your view so that to
> handle response and request
>
> On Sun, Jul 30, 2023, 08:34 Prashanth Patelc 
> wrote:
>
>> Use default django user model
>>
>> from django.contrib.auth.models import User
>> # Create your models here.
>> class Registration (models.Model):
>> author = models.ForeignKey(User, on_delete=models.CASCADE)
>>
>> # write your fields here
>>
>>
>>
>> In settings.py
>>
>>
>> AUTH_USER_MODEL = app name . Modelname
>>
>> On Sun, Jul 30, 2023, 10:57 AM Mohammad Ehsan Ansari <
>> mdehsan...@gmail.com> wrote:
>>
>>> First extend abstract user model or abstract base user model in your
>>> user model and after that define auth.model in settings.py hope its work
>>>
>>> Sent from my iPhone
>>>
>>> On 30-Jul-2023, at 10:45 AM, Abdulrahman Abbas 
>>> wrote:
>>>
>>> 
>>> Can you login with superuser?
>>>
>>> On Sun, Jul 30, 2023, 02:32 Mh Limon  wrote:
>>>
>>>> Views.py file
>>>>
>>>> from django.shortcuts import render,HttpResponse,redirect
>>>> from .models import registration
>>>> from django.contrib.auth import authenticate,login
>>>>
>>>> def home(request):
>>>> return render(request,'home.html')
>>>>
>>>> def log_in(request):
>>>> if request.method == 'POST':
>>>> username = request.POST.get('username')
>>>> password = request.POST.get('password')
>>>>
>>>> user = authenticate(request, username=username, password=
>>>> password)
>>>>
>>>> if user is not None:
>>>> login(request, user)
>>>> return redirect('home')
>>>> else:
>>>> return HttpResponse("You have incorrect Username or
>>>> password")
>>>>
>>>> return render(request, 'log_in.html')
>>>>
>>>>
>>>> def sign_up(request):
>>>> if request.method == 'POST':
>>>> name = request.POST.get('fullname')
>>>> username = request.POST.get('username')
>>>> email = request.POST.get('email')
>>>> pass1 = request.POST.get('password')
>>>> pass2 = request.POST.get('confirm_password')
>>>>
>>>> if pass1 != pass2:
>>>> return HttpResponse("Password not matched")
>>>> else:
>>>> db = registration()
>>>>
>>>> db.Name = name
>>>> db.username = username
>>>> db.Email = email
>>>> db.Password = pass1
>>>>
>>>> db.save()
>>>>
>>>> return redirect('log_in')
>>>>
>>>>
>>>> return render(request,'sign_up.html')
>>>>
>>>> This is models.py for sqlite database:
>>>> from django.db import models
>>>>
>>>> class registration(models.Model):
>>>> Name = models.CharField(max_length=100)
>>>> username = models.CharField(max_length=100)
>>>> Email = models.CharField(max_length=100)
>>>> Password = models.CharField(max_length=100)
>>>>
>>>>
>>>> when providing the correct username and password, the system
>>>> consistently displays an error message stating "You have incorrect Username
>>>> or password."
>>>>
>>>> please help me to solve this error.
>>>>
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>

Re: Problems in Django login authentication

2023-07-31 Thread Joshua Urasa
If you use default user there is no need to write your model because is
there by default so what you need to do create is form.py and inside it
import usercreationform from then that form import to your view so that to
handle response and request

On Sun, Jul 30, 2023, 08:34 Prashanth Patelc 
wrote:

> Use default django user model
>
> from django.contrib.auth.models import User
> # Create your models here.
> class Registration (models.Model):
> author = models.ForeignKey(User, on_delete=models.CASCADE)
>
> # write your fields here
>
>
>
> In settings.py
>
>
> AUTH_USER_MODEL = app name . Modelname
>
> On Sun, Jul 30, 2023, 10:57 AM Mohammad Ehsan Ansari 
> wrote:
>
>> First extend abstract user model or abstract base user model in your user
>> model and after that define auth.model in settings.py hope its work
>>
>> Sent from my iPhone
>>
>> On 30-Jul-2023, at 10:45 AM, Abdulrahman Abbas 
>> wrote:
>>
>> 
>> Can you login with superuser?
>>
>> On Sun, Jul 30, 2023, 02:32 Mh Limon  wrote:
>>
>>> Views.py file
>>>
>>> from django.shortcuts import render,HttpResponse,redirect
>>> from .models import registration
>>> from django.contrib.auth import authenticate,login
>>>
>>> def home(request):
>>> return render(request,'home.html')
>>>
>>> def log_in(request):
>>> if request.method == 'POST':
>>> username = request.POST.get('username')
>>> password = request.POST.get('password')
>>>
>>> user = authenticate(request, username=username, password=
>>> password)
>>>
>>> if user is not None:
>>> login(request, user)
>>> return redirect('home')
>>> else:
>>> return HttpResponse("You have incorrect Username or
>>> password")
>>>
>>> return render(request, 'log_in.html')
>>>
>>>
>>> def sign_up(request):
>>> if request.method == 'POST':
>>> name = request.POST.get('fullname')
>>> username = request.POST.get('username')
>>> email = request.POST.get('email')
>>> pass1 = request.POST.get('password')
>>> pass2 = request.POST.get('confirm_password')
>>>
>>> if pass1 != pass2:
>>> return HttpResponse("Password not matched")
>>> else:
>>> db = registration()
>>>
>>> db.Name = name
>>> db.username = username
>>> db.Email = email
>>> db.Password = pass1
>>>
>>> db.save()
>>>
>>> return redirect('log_in')
>>>
>>>
>>> return render(request,'sign_up.html')
>>>
>>> This is models.py for sqlite database:
>>> from django.db import models
>>>
>>> class registration(models.Model):
>>> Name = models.CharField(max_length=100)
>>> username = models.CharField(max_length=100)
>>> Email = models.CharField(max_length=100)
>>> Password = models.CharField(max_length=100)
>>>
>>>
>>> when providing the correct username and password, the system
>>> consistently displays an error message stating "You have incorrect Username
>>> or password."
>>>
>>> please help me to solve this error.
>>>
>>>
>>>
>>> --
>>> 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/4003937f-9045-4cea-bd6c-b071d7b1a6c3n%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/CAGGqo0MMu55nqSSKhW2%2BjGgGCGf62JJoBuCZA2wgK3NONCxzCg%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/BF995111-54EC-4CD1-A3E8-FE4F35AE49B1%40gmail.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