how to Build a referral and earning system

2022-01-23 Thread SKYLINE TV

i am currently working on a system, when  a user register and do a 
particular task  they will be credited with a certain amount, also the app 
will have a referral system every user will have a unique referral id when 
you invite somebody with your code when there do a task you will also earn 
a certain amount as a referral commission 
i have already design my data base  but i don't know where to start from 
here, if any one here has build a similar app should please share they code 
with me, 
if I didn't deliver this job my work will be at risk 
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/e6cd14f7-5891-4ac4-acbe-a2fcba9e797fn%40googlegroups.com.


how to develop crypto investment site with django

2021-07-01 Thread SKYLINE TV
hello i  am new in django i just finish building my first blog and am still 
learning to enhance myself,
 currently i  use  php for all my projects.  but i needed an advenge 
porgarmining language to move to the next level, that is why i pick up 
django. my aim is to develop an investment  site and level multi marketting 
site with django.
where user can register and select investment package and make a certain % 
within a month or week.
the invesment will grow daily 
the truth is that i dont know where to start.

any body with ideas or code  where i can look at to get started thanks.
email skyline...@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/4876d987-f974-41fc-83c0-317024d5ef17n%40googlegroups.com.


Re: SChedule email

2021-07-01 Thread SKYLINE TV

*You can check out celery and how to integrate it with django. Once done, 
task scheduling is easy,first add your gmail configuration in settings.py 
as follows:*

*EMAIL_BACKEND = 'django_smtp_ssl.SSLEmailBackend' *
*EMAIL_USE_TLS = True *
*EMAIL_HOST = 'smtp.gmail.com' *
*EMAIL_HOST_USER = 'your_email' *
*EMAIL_HOST_PASSWORD = 'your password' *
*DEFAULT_FROM_EMAIL = EMAIL_HOST_USER EMAIL_PORT = 465*

Then in your tasks.py you can add the function for scheduling emails as 
follows:

*from django.template.loader import render_to_string *
*from django.core.mail import EmailMessage*

@periodic_task
( run_every=(crontab(hour=3, minute=34)), #runs exactly at 3:34am every day 
name="Dispatch_scheduled_mail",
 reject_on_worker_lost=True, ignore_result=True) 
def schedule_mail(): 
 message = render_to_string('app/schedule_mail.html') 
 mail_subject = 'Scheduled Email' to_email = getmail email = 
EmailMessage(mail_subject, message, to=[to_email]) 
 email.send()

*Then finally your email template 'schedule_mail.html*
{% autoescape off %} 
Hello , 
 This is a test email if you are seeing this,
 your email got delivered! 
 Regards, Coding Team.
 {% endautoescape %}
On Thursday, July 1, 2021 at 1:54:31 PM UTC+1 divyamu...@gmail.com wrote:

> HI,
>
> I wanted to schedule a email every jan and aug 6 monthly basis without 
> celery using settings.py. Can anyone help?
>
> once in every 6months mail should be triggered
>

-- 
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/a87a8623-d123-404d-91b8-d30a01d91dc0n%40googlegroups.com.


Re: Sorting price and discount price (urgent)

2021-07-01 Thread SKYLINE TV
the word urgen is bad, do lot of google boss

On Thursday, July 1, 2021 at 1:28:13 PM UTC+1 arit...@gmail.com wrote:

> Hi,
>
> I will avoid using 'urgent'. The problem is as described above, I want to 
> sort my products in ascending or descending price order which will include 
> the discount price too if it exists. Right now, if there are two products, 
> A and B; A being ₹900 and B being ₹1200 too but after discount, ₹ 800, the 
> sorting order highest to lowest price is: B,A instead of A,B. As Shailesh 
> asked, discount_price is a model field as I've given in the code about. And 
> the 'fields = {'price': 'discount_price'}' is wrong after I searched a bit 
> on the internet, kindly ignore that. 
>
> Kindly suggest a way to include discount_price in the sorting parameter 
> where it'll be considered instead of the original price itself. 
>
> On Thu, 1 Jul, 2021, 4:06 pm Shailesh Yadav,  
> wrote:
>
>> yes, I agree with Kasper please don't use urgent  OR very urgent, and 
>> please describe your questions in detail.
>> from where you getting this *discount_price* and why you using the 
>> *price* key for two different values. (can you check by printing 
>> *discount_price*)
>>
>> fields={
>> 'price': 'price',
>> 'price':'discount_price'
>> },
>>
>>
>>
>> Thanks & Regards
>> Shailesh Yadav
>>
>>
>>
>> On Thu, Jul 1, 2021 at 1:33 PM Aritra Ray  wrote:
>>
>>> I tried to describe the problem but till my capability and it is urgent, 
>>> not just for increasing the possibility of getting help. Thank you for your 
>>> advice and help.
>>>
>>> On Thu, 1 Jul, 2021, 1:30 pm Kasper Laudrup,  
>>> wrote:
>>>
 On 7/1/21 8:03 AM, Aritra Ray wrote:
 > I am facing a problem in including the discount_price into 
 consideration 
 > when sorting price through the products. Kindly help me to do so. The 
 > below attached files are filters.py, views.py and  models.py.
 >

 Instead of writing "urgent" in hope it will increase your chances of 
 getting help faster, you'll have a much better chance of getting some 
 useful help if you spend some time describing the exact problem you 
 have 
 instead of just "a problem".

 This might help you:


 https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2b

 Kind regards,

 Kasper Laudrup

 -- 
 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/0c454b7d-cb51-ea95-d0e8-ca4be0c2bad7%40stacktrace.dk
 .

>>> -- 
>>> 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/CAFecadvpnYg3CWXRtZfNjWpLPbd4KyqndZ5EdmVUmaP_dbvR0Q%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/CAMQ-AEVPDkAeFihwbd1xYWNskvUc8zta-9FZW1ePr_rYZ0vnGA%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/2540fcd5-1ae1-4576-a9d2-c654266e8318n%40googlegroups.com.


Re: ValueError: Field 'stufees' expected a number but got 'None'.

2021-07-01 Thread SKYLINE TV
kindly add the screenshort to enable me see your model

On Thursday, July 1, 2021 at 10:58:40 PM UTC+1 abeer.e...@gmail.com wrote:

> Hi Waqar,
>
> Could you add your models.py and a screenshot or copy of the error you are 
> observing?
>
> Thanks!
>
> On Thu, Jul 1, 2021 at 5:31 PM waqar khan  wrote:
>
>> I have create model class and run success fully
>> But Issues add field like stufees ,
>> stufess=models.FloatField(),
>> right value default ,
>> as soon as reply me 
>>
>> -- 
>> 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/5ac34a99-30c8-4dbe-80f6-0700d938709dn%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/bfd8833d-c3c7-4da6-bac0-d3fea47817f6n%40googlegroups.com.


django send defferent html message to defferent email address

2021-07-03 Thread SKYLINE TV
i am currently building a contact us form.
when my users filed the form  and submit  it will send them welcome message 
and send also forward the user data to my email.

 i was able to used mailMultiAlternatives  to achieve  sending  the html 
template to my users with the code below.

EmailMultiAlternatives email class doesn't  allow sending multiple message 
to different email address. 


class Conactme(CreateView):
form_class = Contactusform
context_object_name = "forms"
template_name = "registration/contactus.html"
success_url = reverse_lazy('home')

def form_valid(self, form):
if form.is_valid():


email = form.cleaned_data['email']
full_name = form.cleaned_data['full_name']
purpose = form.cleaned_data['purpose']
phone = form.cleaned_data['phone']
comment = form.cleaned_data['comment']
form.save()
content = {"fullname": full_name,
   "phone":  phone,
   "purpose": purpose
   }
userssubject = "Users Registrations"
adminsubject = "Welcome message"
html_message = render_to_string(
template_name="emails/email_comfirmation.html", context=content)
meg = EmailMultiAlternatives(
adminsubject, full_name, EMAIL_HOST_USER, [email])
meg.attach_alternative(html_message, 'text/html')
meg.send()
if meg.send:
 return render(self.request, "registration/sucesss.html")

-- 
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/cfabe10e-0dae-4ec2-9936-b6061a4ae146n%40googlegroups.com.


Re: django send defferent html message to defferent email address

2021-07-03 Thread SKYLINE TV
thanks very much but base on your code you are sending all the  message to 
user. i want to send a specific message to   admin emails like 
form input data than and also send to user  such as welcome message 

On Saturday, July 3, 2021 at 2:10:21 PM UTC+1 get...@gmail.com wrote:

> from django.conf import settings
> from django.core.mail import send_mail
>
> def valorant_view(request):
> if (valorant_registration.objects.count() <= 160):
> if request.method == 'POST':
> first_name = request.POST['first_name']
> last_name = request.POST['last_name']
> email = request.POST['email']
> mobile_number = request.POST['mobile_number']
> branch = request.POST['mobile_number']
> dicord_id = request.POST['dicord_id']
> valorant_id = request.POST['valorant_id']
> college_name = request.POST['college_name']
> student_id = request.FILES['student_id']
>
> valorant = valorant_registration(first_name=first_name, 
> last_name=last_name, email=email,
>  mobile_number=mobile_number, 
> branch=branch, dicord_id=dicord_id, valorant_id=valorant_id, college_name=
> college_name, student_id=student_id)
>
> valorant.save()
> print('Event Registration Done Succesfully')
> subject = 'Techela 6.0 Registration'
> from_email = settings.DEFAULT_FROM_EMAIL
> template = render_to_string(
> 'thank-you.html', {'name': first_name + ' ' + last_name, 
> 'event': 'Valorant'})
> message = 'Test'
> html_message = template
>
> send_mail(subject, message, from_email, [email],
>   fail_silently=False, html_message=html_message)
> return HttpResponse('Done')
>
> else:
> print('Not there events')
> return redirect('warning.html2')
>
> else:
> return HttpResponse('Registration closed')
>
> On Sat, Jul 3, 2021 at 6:05 PM SKYLINE TV  wrote:
>
>> i am currently building a contact us form.
>> when my users filed the form  and submit  it will send them welcome 
>> message and send also forward the user data to my email.
>>
>>  i was able to used mailMultiAlternatives  to achieve  sending  the html 
>> template to my users with the code below.
>>
>> EmailMultiAlternatives email class doesn't  allow sending multiple 
>> message to different email address. 
>>
>>
>> class Conactme(CreateView):
>> form_class = Contactusform
>> context_object_name = "forms"
>> template_name = "registration/contactus.html"
>> success_url = reverse_lazy('home')
>>
>> def form_valid(self, form):
>> if form.is_valid():
>>
>>
>> email = form.cleaned_data['email']
>> full_name = form.cleaned_data['full_name']
>> purpose = form.cleaned_data['purpose']
>> phone = form.cleaned_data['phone']
>> comment = form.cleaned_data['comment']
>> form.save()
>> content = {"fullname": full_name,
>>"phone":  phone,
>>"purpose": purpose
>>}
>> userssubject = "Users Registrations"
>> adminsubject = "Welcome message"
>> html_message = render_to_string(
>> template_name="emails/email_comfirmation.html", 
>> context=content)
>> meg = EmailMultiAlternatives(
>> adminsubject, full_name, EMAIL_HOST_USER, [email])
>> meg.attach_alternative(html_message, 'text/html')
>> meg.send()
>> if meg.send:
>>  return render(self.request, "registration/sucesss.html")
>>
>> -- 
>> 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/cfabe10e-0dae-4ec2-9936-b6061a4ae146n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/cfabe10e-0dae-4ec2-9936-b6061a4ae146n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/5292f40b-a083-4a89-a05f-78a224f3fc77n%40googlegroups.com.


Django developer team in Nigeria

2021-07-18 Thread SKYLINE TV
hello i am currently working with http://skylineict.com as a developer with 
php.
but venture into python late last your. if you are a django developer or 
still learning kindly join my Nigeria team. we share ideas and help each 
other.
join with the link below.

whatgorup:  https://chat.whatsapp.com/LOzdmEEho6K2AzePiS1ynQ


-- 
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/582d51c7-0054-4053-a545-24feb856a803n%40googlegroups.com.


join developer meeting point Django discussion forum

2021-07-19 Thread SKYLINE TV
Welcome to Django developer meeting hub


developer meeting point is a discussion forum where  we talk about our 
various challenges in python programming and  Django framework
And also  Help each other To resolved our bug.


I notice than as a beginner there are various bug and error's I always 
experience during my learning process but it took  me the whole week to 
resolved this issues that slow down my learning. i almost give-up because i 
lack community to share my problems.

but With developer meeting point you can share those errors and bug with 
the  community.  to Resolved it faster


We mostly meet on google meeting. Twice a week
Join and share the WhatsApp group.
https://chat.whatsapp.com/LOzdmEEho6K2AzePiS1ynQ

-- 
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/7303e6f2-da4e-43c7-9ca5-23e3bdd9bc53n%40googlegroups.com.


Re: help me

2021-07-28 Thread SKYLINE TV
You can. Use name cheap, cpanel

On Wednesday, July 28, 2021, David Crandell 
wrote:

> Try deploying to a PaaS platform like Heroku or DigitalOceans Apps service.
>
> They can be very cost effective and are an excellent way to host a Django
> app.
>
> On Tuesday, July 27, 2021 at 11:26:13 AM UTC-5 kossit...@gmail.com wrote:
>
>>
>> I need a video who explains how to host a site on ionos
>> --
>> theodoros17@python-developer
>>
> --
> 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/80f577f9-5731-4b4b-82db-51da1e695ff1n%
> 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/CABoT6ifGRu6f8U%2B4rxbqdXUTDctT1u4qj_JggRSzpQy_q%2BCY6g%40mail.gmail.com.