Re: DRF | Django | Up votes | Down Votes

2021-06-24 Thread DJANGO DEVELOPER
Is there anyone who can help me here?

On Thu, Jun 24, 2021 at 7:15 PM DJANGO DEVELOPER 
wrote:

> Hi Django experts.
> I am building a Django, DRF based mobile app and I want to have
> functionality of up votes and down votes for posts that user will post.
> So what I want to say here that, if an user upvotes a post then it should
> be get higher ranks as quora questions do. and if there are more down votes
> than up votes then a post should be moved down ward rather than going up.
> I have applied a logic already here and shared the screenshots as well.
> but I am sure that there is a better logic or solution for this problem.
> Thanks in advance.
> Mr Mike and Mr Lalit can you guide me here please?
>
> --
> 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/c72fefe7-58d2-4c43-84b8-0faa3d9747b0n%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/CAKPY9pkAYcmio_U%2BAUPMcxzxbdT8QM1QPfPDftMgrj2NQvsJRQ%40mail.gmail.com.


Re: Hi django

2021-06-24 Thread DJANGO DEVELOPER
muhammad haris salamat just make a form in your template, then have a
name='any name here' and then make a view in which you have to get the name
in the following way.
query = request.POST.get('any name here')
and then do this:
value = ModelName.objects.filter(Q(model_field = query)


On Thu, Jun 24, 2021 at 10:31 PM muhammad haris salamat <
harissalama...@gmail.com> wrote:

> Hi all can u help me plz how I can use filter with Contain query in Django
> I wanna fetch all data from my database with the help of filter query
>
> On Thu, 24 Jun 2021, 9:17 pm Richard Dushime, 
> wrote:
>
>> THANK U I HAVE DONE TO FIX IT ITS NOW WORKING
>>
>> On Thu, Jun 24, 2021 at 6:04 PM Julio Cojom 
>> wrote:
>>
>>> Django framework uses urls to math the html files. This work with the
>>> same syntax of static files, you would use {% url 'app:viewname' %} to
>>> render any page with Django.
>>>
>>> You should check the docs of urls to understand how it works and get
>>> this done.
>>>
>>> Regards
>>>
>>> El jue., 24 de junio de 2021 9:00 a. m., Richard Dushime <
>>> mudaherar...@gmail.com> escribió:
>>>
 i have a problem on my navigation bar on the index.html link when i
 click on it its showing me the error (see error.png)  or everything apart
 that its working fine  need ur help
 >>> "{% static 'assets/img/hero-logo.png' %}" alt="">
   
 >>> "{% static 'assets/img/logo.png' %}" alt="" class="img-fluid">
   

   
 
   Home
   About
 
   About Us
   Team
 
   
   Services

   >>> "{% static 'assets/img/logo.png' %}" alt="" class="img-fluid">

   Portfolio
   Pricing
   Contact

 
   


 --
 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/CAJCm56L%2BG%3D8tLZ%3D3sZ0%3Dh%3Ds-w5AXaLroU3nkgoKZO6Fj8xqFBw%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/CAHRQUHmOdq-yXfQdkDRcvjdf727U1Wr1HogjVpP1bw0o7rN61w%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/CAJCm56Jn1WOtp-hGbFoDS6uYy8A5ZSom7fD6j_UG%3D-oM4WQWng%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/CA%2BOEwHsNuBGuH8fr3LoooK6K78F%2BZJb0OhBMxJcCuTG-K9Zkbw%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/CAKPY9pkHrO9HEPKsK15qfnKqFMkfvMR4EDqysB0MpJ2MJTKEEQ%40mail.gmail.com.


Django relationships

2021-06-24 Thread Murad
Hi Django developers,
i am new in Python,

i want to develop a simple app stock management.

can you give me a brief idea how to add device to stock if it hasnt 
assigned to employee

i have below models

class Device(models.Model):
STATUS = ( 
('in use', in use),
 ('available', 'available')
)
status =models.Charfield(choices=STATUS, max_length=32)
name = models.Charfield(max_length=32)


class Employee(models.Model):
name = models.Charfield(max_length=32)


class Assign(models.Model):
   notebook =  models.ForeignKey(' Device  ', on_delete=models.CASCADE)
subscriber = models.ForeignKey('Employee', on_delete=models.CASCADE)


class Stock(models.Model):
pass


I want if device is already has subscribers then aply its status to 
'in_use' and remove it from Stock model and if device status is available 
then move it to Stock

-- 
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/1a4ecf34-49e8-4ebf-8a91-78de6b63b5d3n%40googlegroups.com.


Re: Deploy Django app using cpanel

2021-06-24 Thread Kelvin Sajere
Not everyone can afford a VPS. And hosting a django website isn’t at all
difficult. I use shared cpanel hosting for hosting django websites often,
and it is easy. You just need to do it once and you never have to worry
about doing it again. You still have to know how to host on VPS right? Or
is it done automatically with you having to do anything?

On Wed, Jun 23, 2021 at 20:54 Eugene TUYIZERE 
wrote:

> Dear Jolio,
>
> can you send me step by step to host to DigitalOcean?
>
> regards,
>
> On Wed, 23 Jun 2021 at 20:52, Julio Cojom 
> wrote:
>
>> cPanel it's a pain to deploy python applications, better change to a vps
>> with digitalocean or something similar.
>>
>>
>>
>> El mié., 23 de junio de 2021 11:37 a. m., Franck Tchouanga <
>> ftchoua...@gmail.com> escribió:
>>
>>> I see.
>>>
>>> On Wed, Jun 23, 2021, 11:38 AM Eugene TUYIZERE 
>>> wrote:
>>>
 Dear Franck,

 The problem I have now is to configure the django app in cpanel so that
 users can browse it. As I said in previous email, I already have domain and
 cpanel credentials.

 On Wed, 23 Jun 2021 at 12:17, Franck Tchouanga 
 wrote:

> Hello I can assist you what is the problem.
>
>
> On Wed, Jun 23, 2021 at 9:54 AM Eugene TUYIZERE <
> eugenetuyiz...@gmail.com> wrote:
>
>> please assist
>>
>> On Tue, 22 Jun 2021 at 13:03, Eugene TUYIZERE <
>> eugenetuyiz...@gmail.com> wrote:
>>
>>> Dear Team,
>>>
>>> I have an issue. I want to make my app productive. I bought a domain
>>> and I got cpanel credentials. The problem I have now is that I do not 
>>> know
>>> how I can configure the app in cpanel so that users can start browsing 
>>> it.
>>> I tried to connect to the database and I loaded the application files. 
>>> Is
>>> there someone who can tell me all the steps I need to follow to make the
>>> app accessible? for what I have done, I am getting this error message 
>>> when
>>> browsing:
>>> [image: image.png]
>>>
>>> Please assist
>>>
>>> --
>>> *Eugene*
>>>
>>>
>>>
>>
>> --
>> *TUYIZERE Eugene*
>>
>>
>>
>> *Msc Degree in Mathematical Science*
>>
>> *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal
>> Garden-Lime, Cameroon*
>>
>> Bsc in Computer Science
>>
>> *UR-Nyagatare Campus*
>>
>> Email: eugene.tuyiz...@aims-cameroon.org
>>eugenetuyiz...@gmail.com
>>
>> Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38
>>
>> --
>> 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/CABxpZHt5TP8LK%2ByELRcC0sZwJ4WUTw7_PAp7%3DpsS%3DKTnG8zRNw%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> Best Wishes
>
> *Mr Tchouanga*
>
> --
> 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/CANRJ%3D3%3DHnyVQfMmCGpZk-cMLhZZQvqp4EHxjdh-3itcoPnFUPA%40mail.gmail.com
> 
> .
>


 --
 *TUYIZERE Eugene*



 *Msc Degree in Mathematical Science*

 *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal
 Garden-Lime, Cameroon*

 Bsc in Computer Science

 *UR-Nyagatare Campus*

 Email: eugene.tuyiz...@aims-cameroon.org
eugenetuyiz...@gmail.com

 Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38

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

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To 

Re: Diploy django on DigitalOcean

2021-06-24 Thread Kelvin Sajere
I would prefer using a cloud service like AWS or Google cloud service for
your media files and host your application with Heroku.

On Thu, Jun 24, 2021 at 14:05 Sunday Iyanu Ajayi 
wrote:

> Hi
>
> You can use this link:
> https://simpleisbetterthancomplex.com/tutorial/2016/10/14/how-to-deploy-to-digital-ocean.html
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunnexaj...@gmail.com *
>
>
>
> On Thu, Jun 24, 2021 at 8:27 AM Eugene TUYIZERE 
> wrote:
>
>> Hello Team,
>>
>> I need some tutorials and steps to deploy a django app on DigitalOcean.
>> Note that I already have the domain what it remaining is only to host.
>>
>> Thank you
>>
>> --
>> *Eugene*
>>
>> --
>> 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/CABxpZHsoWK1zUBgu8a4CERk0AcK2pm3zG_pa8Kv%3D7vGtXXbr_g%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/CAKYSAw2N3%3DpuVX4LywuubbvGOR2Ld_NubBMxqJ4S5Z5tUdQ-OA%40mail.gmail.com
> 
> .
>
-- 
KeLLs

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


Re: Hi django

2021-06-24 Thread muhammad haris salamat
Hi all can u help me plz how I can use filter with Contain query in Django
I wanna fetch all data from my database with the help of filter query

On Thu, 24 Jun 2021, 9:17 pm Richard Dushime, 
wrote:

> THANK U I HAVE DONE TO FIX IT ITS NOW WORKING
>
> On Thu, Jun 24, 2021 at 6:04 PM Julio Cojom 
> wrote:
>
>> Django framework uses urls to math the html files. This work with the
>> same syntax of static files, you would use {% url 'app:viewname' %} to
>> render any page with Django.
>>
>> You should check the docs of urls to understand how it works and get this
>> done.
>>
>> Regards
>>
>> El jue., 24 de junio de 2021 9:00 a. m., Richard Dushime <
>> mudaherar...@gmail.com> escribió:
>>
>>> i have a problem on my navigation bar on the index.html link when i
>>> click on it its showing me the error (see error.png)  or everything apart
>>> that its working fine  need ur help
>>> >> "{% static 'assets/img/hero-logo.png' %}" alt="">
>>>   
>>> >> "{% static 'assets/img/logo.png' %}" alt="" class="img-fluid">
>>>   
>>>
>>>   
>>> 
>>>   Home
>>>   About
>>> 
>>>   About Us
>>>   Team
>>> 
>>>   
>>>   Services
>>>
>>>   >> "{% static 'assets/img/logo.png' %}" alt="" class="img-fluid">
>>>
>>>   Portfolio
>>>   Pricing
>>>   Contact
>>>
>>> 
>>>   
>>>
>>>
>>> --
>>> 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/CAJCm56L%2BG%3D8tLZ%3D3sZ0%3Dh%3Ds-w5AXaLroU3nkgoKZO6Fj8xqFBw%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/CAHRQUHmOdq-yXfQdkDRcvjdf727U1Wr1HogjVpP1bw0o7rN61w%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/CAJCm56Jn1WOtp-hGbFoDS6uYy8A5ZSom7fD6j_UG%3D-oM4WQWng%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/CA%2BOEwHsNuBGuH8fr3LoooK6K78F%2BZJb0OhBMxJcCuTG-K9Zkbw%40mail.gmail.com.


Re: Hi django

2021-06-24 Thread Richard Dushime
THANK U I HAVE DONE TO FIX IT ITS NOW WORKING

On Thu, Jun 24, 2021 at 6:04 PM Julio Cojom 
wrote:

> Django framework uses urls to math the html files. This work with the same
> syntax of static files, you would use {% url 'app:viewname' %} to render
> any page with Django.
>
> You should check the docs of urls to understand how it works and get this
> done.
>
> Regards
>
> El jue., 24 de junio de 2021 9:00 a. m., Richard Dushime <
> mudaherar...@gmail.com> escribió:
>
>> i have a problem on my navigation bar on the index.html link when i click
>> on it its showing me the error (see error.png)  or everything apart that
>> its working fine  need ur help
>> > "{% static 'assets/img/hero-logo.png' %}" alt="">
>>   
>> > "{% static 'assets/img/logo.png' %}" alt="" class="img-fluid">
>>   
>>
>>   
>> 
>>   Home
>>   About
>> 
>>   About Us
>>   Team
>> 
>>   
>>   Services
>>
>>   > "{% static 'assets/img/logo.png' %}" alt="" class="img-fluid">
>>
>>   Portfolio
>>   Pricing
>>   Contact
>>
>> 
>>   
>>
>>
>> --
>> 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/CAJCm56L%2BG%3D8tLZ%3D3sZ0%3Dh%3Ds-w5AXaLroU3nkgoKZO6Fj8xqFBw%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/CAHRQUHmOdq-yXfQdkDRcvjdf727U1Wr1HogjVpP1bw0o7rN61w%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/CAJCm56Jn1WOtp-hGbFoDS6uYy8A5ZSom7fD6j_UG%3D-oM4WQWng%40mail.gmail.com.


Re: Hi django

2021-06-24 Thread Julio Cojom
Django framework uses urls to math the html files. This work with the same
syntax of static files, you would use {% url 'app:viewname' %} to render
any page with Django.

You should check the docs of urls to understand how it works and get this
done.

Regards

El jue., 24 de junio de 2021 9:00 a. m., Richard Dushime <
mudaherar...@gmail.com> escribió:

> i have a problem on my navigation bar on the index.html link when i click
> on it its showing me the error (see error.png)  or everything apart that
> its working fine  need ur help
>  "{% static 'assets/img/hero-logo.png' %}" alt="">
>   
>   alt="" class="img-fluid">
>   
>
>   
> 
>   Home
>   About
> 
>   About Us
>   Team
> 
>   
>   Services
>
>"{% static 'assets/img/logo.png' %}" alt="" class="img-fluid">
>
>   Portfolio
>   Pricing
>   Contact
>
> 
>   
>
>
> --
> 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/CAJCm56L%2BG%3D8tLZ%3D3sZ0%3Dh%3Ds-w5AXaLroU3nkgoKZO6Fj8xqFBw%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/CAHRQUHmOdq-yXfQdkDRcvjdf727U1Wr1HogjVpP1bw0o7rN61w%40mail.gmail.com.


Hi django

2021-06-24 Thread Richard Dushime
i have a problem on my navigation bar on the index.html link when i click
on it its showing me the error (see error.png)  or everything apart that
its working fine  need ur help

  

  

  

  Home
  About

  About Us
  Team

  
  Services

  

  Portfolio
  Pricing
  Contact


  

-- 
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/CAJCm56L%2BG%3D8tLZ%3D3sZ0%3Dh%3Ds-w5AXaLroU3nkgoKZO6Fj8xqFBw%40mail.gmail.com.


In need of urgent help as I've been stuck on this for a while

2021-06-24 Thread Aritra Ray
Hi,
This is my second request regarding the same issue. I've been building a
Django E-commerce website and I'm facing problems filtering the product
according to price. I used django-filter to filter category and size.
Please suggest a solution for price in the following manner: Latest
products, Lowest to Highest and Highest to Lowest. I've made some progress
in the template without using django-filter. Kindly help me tie it up with
the backend.

Do let me know if anything else is needed.
Thanks for your help in advance

Regards,
Aritra

#products-html
 

  
  
{{filter.form|crispy}}

  Select sorting criteria
  
  
  
  Latest collection
  Lowest to Highest
  Highest to Lowest
  
  
  
  
 Search

  


#views.py

class Product(ListView):
model = Items
paginate_by = 6
template_name = 'products.html'
ordering = ["-id"]

def get_queryset(self):
queryset = super().get_queryset()
filter = ProductFilter(self.request.GET, queryset)
return filter.qs

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
queryset = self.get_queryset()
filter = ProductFilter(self.request.GET, queryset)
context["filter"] = filter
return context

# filters.py
import django_filters
from .models import Items

class ProductFilter(django_filters.FilterSet):
class Meta:
model = Items
fields = ['size', 'category']

-- 
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/CAFecadukpt-gAgFwT5%2BKGM2tp3u3fdFDj98MQHWPgbY42dMGVQ%40mail.gmail.com.


How to write a v-if condition for comparing django accessed value "{{cust_package}}" and vue.js "<%radio_price%>"

2021-06-24 Thread Salima Begum
And here I am trying to write if  statement and also I have interpolated a
value in vue.js like "{{cust_package}}" accessed In django and
<%radio_price%> accessed in vue.js for both i am trying to write a if
condition like
"v-if="radio_price == {{cust_package}}" So this condition is not working so
How can we write condition for both django and vue.js. The main issue is i
want to write a if condition for both accessed value in django and vue.js I
want to compare both the value by using v-if


Django backend code
```
return render(request, 'postad.html', {'user_type': user_type,
   'cust_package': cust_package,
   'package_value': price_value,
   'cust_package_ads':
cust_package_ads})
```


from above code I have accessed cust_package into below template. And here
I am trying to write if  statement and also I have interpolated a value in
vue.js like "{{cust_package}}" accessed In django and <%radio_price%>
accessed in vue.js for both i am trying to write a if condition like
"v-if="radio_price == {{cust_package}}" So this condition is not working so
How can we write condition for both django and vue.js
```


   
  
$2.99 - 6
Ads/Month
  

  
$4.99 - 12
Ads/Month
  
   


{{cust_package}}
<%radio_price%>
*here I am trying to compare django and vue.js accessed Value using v-if
directive*

submit

```

-- 
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/CAMSz6bkKp7ckpvBis5NL_EwDoH_xE12va6NE7hd_M%2Be-jFHzog%40mail.gmail.com.


Re: Diploy django on DigitalOcean

2021-06-24 Thread Sunday Iyanu Ajayi
Hi

You can use this link:
https://simpleisbetterthancomplex.com/tutorial/2016/10/14/how-to-deploy-to-digital-ocean.html
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Thu, Jun 24, 2021 at 8:27 AM Eugene TUYIZERE 
wrote:

> Hello Team,
>
> I need some tutorials and steps to deploy a django app on DigitalOcean.
> Note that I already have the domain what it remaining is only to host.
>
> Thank you
>
> --
> *Eugene*
>
> --
> 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/CABxpZHsoWK1zUBgu8a4CERk0AcK2pm3zG_pa8Kv%3D7vGtXXbr_g%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/CAKYSAw2N3%3DpuVX4LywuubbvGOR2Ld_NubBMxqJ4S5Z5tUdQ-OA%40mail.gmail.com.


Re: Django

2021-06-24 Thread Théodore KOSSI
thanks you very much

Le jeu. 24 juin 2021 à 13:16, Boris Pérez  a écrit :

> Hi, u need a custom
> tag...https://docs.djangoproject.com/en/3.2/howto/custom-template-tags/
> Greetings...Boris
>
> 2021-06-24 8:01 GMT-04:00, Théodore KOSSI :
> > I want also someone who can help me to manipulate my database in django
> >
> >
> > Le jeu. 24 juin 2021 à 13:00, Théodore KOSSI  a
> > écrit :
> >
> >>
> >>
> >> I want to use the function now  in my  template and i don't know how  i
> >> can do
> >>
> >> theodoros17@python-developer
> >>
> >
> >
> > --
> > 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/CAKiMjQEK%3Dai60tEyToY7b%2BjCovgzL5CAaJdAs5LT2eOF20uAcA%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/CAObPVPBMmdc5qGqsEVwFCu4%2BJNsozGTUCnexs%3DAeqg2XUGkLdA%40mail.gmail.com
> .
>


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


Re: Django

2021-06-24 Thread Boris Pérez
Hi, u need a custom
tag...https://docs.djangoproject.com/en/3.2/howto/custom-template-tags/
Greetings...Boris

2021-06-24 8:01 GMT-04:00, Théodore KOSSI :
> I want also someone who can help me to manipulate my database in django
>
>
> Le jeu. 24 juin 2021 à 13:00, Théodore KOSSI  a
> écrit :
>
>>
>>
>> I want to use the function now  in my  template and i don't know how  i
>> can do
>>
>> theodoros17@python-developer
>>
>
>
> --
> 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/CAKiMjQEK%3Dai60tEyToY7b%2BjCovgzL5CAaJdAs5LT2eOF20uAcA%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/CAObPVPBMmdc5qGqsEVwFCu4%2BJNsozGTUCnexs%3DAeqg2XUGkLdA%40mail.gmail.com.


Re: Django

2021-06-24 Thread Théodore KOSSI
I want also someone who can help me to manipulate my database in django


Le jeu. 24 juin 2021 à 13:00, Théodore KOSSI  a
écrit :

>
>
> I want to use the function now  in my  template and i don't know how  i
> can do
>
> theodoros17@python-developer
>


-- 
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/CAKiMjQEK%3Dai60tEyToY7b%2BjCovgzL5CAaJdAs5LT2eOF20uAcA%40mail.gmail.com.


Django

2021-06-24 Thread Théodore KOSSI
I want to use the function now  in my  template and i don't know how  i can
do

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/CAKiMjQEBmTDBSSwEvFq9NCP0YrXU-c-ffHdsKAUDOd%2BAVF%2BhfQ%40mail.gmail.com.


Re: Diploy django on DigitalOcean

2021-06-24 Thread Gabriel Akwasi Asare
Don’t forget that heroku doesn’t manage your media files.It deletes them
every reboot which is going to cost you your data
Digital ocean let’s do all things yourself yeah but it’s worth it
You have control to manage your site however you want it

On Thu, 24 Jun 2021 at 09:45 Luciano Martins  wrote:

> Good morning...Implementing something on a VPN like Digital Ocean will
> require you to take care and configure everything, part of security,
> database, etc, if possible choose Heroku that already delivers the
> infrastructure ready and you just have to will care about the code...a tip!!
>
> Em quinta-feira, 24 de junho de 2021 às 06:27:30 UTC-3,
> gabriels...@gmail.com escreveu:
>
>> Open the file,it has all you need
>>
>> On Thu, 24 Jun 2021 at 09:08 Antonis Christofides <
>> ant...@antonischristofides.com> wrote:
>>
>>> Hi,
>>>
>>> you can try "Deploying Django on a single Debian or Ubuntu server" at
>>> djangodeployment.com or djangodeployment.readthedocs.io.
>>>
>>> Regards,
>>>
>>> Antonis
>>>
>>> Antonis Christofides+30-6979924665 <+30%20697%20992%204665> (mobile)
>>>
>>>
>>> On 24/06/2021 10.20, Eugene TUYIZERE wrote:
>>>
>>> Hello Team,
>>>
>>> I need some tutorials and steps to deploy a django app on DigitalOcean.
>>> Note that I already have the domain what it remaining is only to host.
>>>
>>> Thank you
>>>
>>> --
>>> *Eugene*
>>>
>>> --
>>> 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/CABxpZHsoWK1zUBgu8a4CERk0AcK2pm3zG_pa8Kv%3D7vGtXXbr_g%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/b9895365-b303-948f-88c6-3b7f43a57c82%40antonischristofides.com
>>> 
>>> .
>>>
>> --
>> Gabrielstone
>>
> --
> 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/a8447748-48c4-468b-bd5b-12c0cd7d63d7n%40googlegroups.com
> 
> .
>
-- 
Gabrielstone

-- 
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/CAL-5MpVUFTwMYWsxmMWJ%3D1yL1iciKQx5gtMjmyA_H19WpAVNkQ%40mail.gmail.com.


Re: Diploy django on DigitalOcean

2021-06-24 Thread Luciano Martins
Good morning...Implementing something on a VPN like Digital Ocean will 
require you to take care and configure everything, part of security, 
database, etc, if possible choose Heroku that already delivers the 
infrastructure ready and you just have to will care about the code...a tip!!

Em quinta-feira, 24 de junho de 2021 às 06:27:30 UTC-3, 
gabriels...@gmail.com escreveu:

> Open the file,it has all you need 
>
> On Thu, 24 Jun 2021 at 09:08 Antonis Christofides <
> ant...@antonischristofides.com> wrote:
>
>> Hi,
>>
>> you can try "Deploying Django on a single Debian or Ubuntu server" at 
>> djangodeployment.com or djangodeployment.readthedocs.io.
>>
>> Regards,
>>
>> Antonis
>>
>> Antonis Christofides+30-6979924665 <+30%20697%20992%204665> (mobile)
>>
>>
>> On 24/06/2021 10.20, Eugene TUYIZERE wrote:
>>
>> Hello Team, 
>>
>> I need some tutorials and steps to deploy a django app on DigitalOcean. 
>> Note that I already have the domain what it remaining is only to host.
>>
>> Thank you
>>
>> -- 
>> *Eugene*
>>
>> -- 
>> 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/CABxpZHsoWK1zUBgu8a4CERk0AcK2pm3zG_pa8Kv%3D7vGtXXbr_g%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/b9895365-b303-948f-88c6-3b7f43a57c82%40antonischristofides.com
>>  
>> 
>> .
>>
> -- 
> Gabrielstone
>

-- 
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/a8447748-48c4-468b-bd5b-12c0cd7d63d7n%40googlegroups.com.


Re: Diploy django on DigitalOcean

2021-06-24 Thread Gabriel Akwasi Asare
Open the file,it has all you need

On Thu, 24 Jun 2021 at 09:08 Antonis Christofides <
anto...@antonischristofides.com> wrote:

> Hi,
>
> you can try "Deploying Django on a single Debian or Ubuntu server" at
> djangodeployment.com or djangodeployment.readthedocs.io.
>
> Regards,
>
> Antonis
>
> Antonis Christofides
> +30-6979924665 (mobile)
>
>
> On 24/06/2021 10.20, Eugene TUYIZERE wrote:
>
> Hello Team,
>
> I need some tutorials and steps to deploy a django app on DigitalOcean.
> Note that I already have the domain what it remaining is only to host.
>
> Thank you
>
> --
> *Eugene*
>
> --
> 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/CABxpZHsoWK1zUBgu8a4CERk0AcK2pm3zG_pa8Kv%3D7vGtXXbr_g%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/b9895365-b303-948f-88c6-3b7f43a57c82%40antonischristofides.com
> 
> .
>
-- 
Gabrielstone

-- 
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/CAL-5MpUJU%3D0RYf%2BNxGQda3hVjB7srW69W-yc69_3fZWOkStG2w%40mail.gmail.com.
digital ocean setups
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04#step-5-–-setting-up-server-blocks-(recommended)

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04

https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04

https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-20-04


Re: Diploy django on DigitalOcean

2021-06-24 Thread Antonis Christofides

Hi,

you can try "Deploying Django on a single Debian or Ubuntu server" at 
djangodeployment.com or djangodeployment.readthedocs.io.


Regards,

Antonis

Antonis Christofides
+30-6979924665 (mobile)


On 24/06/2021 10.20, Eugene TUYIZERE wrote:

Hello Team,

I need some tutorials and steps to deploy a django app on DigitalOcean. Note 
that I already have the domain what it remaining is only to host.


Thank you

--
*Eugene*

--
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/CABxpZHsoWK1zUBgu8a4CERk0AcK2pm3zG_pa8Kv%3D7vGtXXbr_g%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/b9895365-b303-948f-88c6-3b7f43a57c82%40antonischristofides.com.


Deploy Django app with Apache2

2021-06-24 Thread tristant
I was looking to turn a a laptop into a standing webserver to deploy a 
Django app within an intranet. This tutorial here shows how to doing with 
Apache2:  Hands-On How to Host Django with Apache2 | by Muhammad Ryan | 
Level Up Coding (gitconnected.com) 
.
 
But it only shows how to deploy locally without using a real DNS (i.e 
instead of using "localhost:8000", it uses "localhost/project_name" as the 
address).

Suppose I have secured a DNS, how should I proceed or what steps need to 
deviate from this tutorial? Or if anyone has better educating sources for 
this purpose, that would be much appreciated. I work with Ubutu. 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/0925c4ae-1d27-4221-a2d6-c2188b66d096n%40googlegroups.com.


Diploy django on DigitalOcean

2021-06-24 Thread Eugene TUYIZERE
Hello Team,

I need some tutorials and steps to deploy a django app on DigitalOcean.
Note that I already have the domain what it remaining is only to host.

Thank you

-- 
*Eugene*

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


Re: Django-tenants-schema and django-tenant

2021-06-24 Thread clas...@gmail.com
has no one use django-tenant on heroku?

On Monday, June 21, 2021 at 9:38:19 PM UTC+1 clas...@gmail.com wrote:

> Hello friends,
> Am having a big challenge hosting django-tenant-schemas I currently have 
> one hosted in heroku but does not route the subdomain created for example I 
> cant access sub.mydomain.com but mydomain.com works have tried wildcard 
> on the subsomain through the domain hosting platform but no result yet I 
> really want this to work in live production as all test has been done in 
> dev mode and work fine using sub.loclhost:8000 no.all code are fine when 
> deployed to heroku not jus get the subsomain.please is there any hosting 
> platform that allow such multi-tenant app to work as expected.
> Await your swift response.
> Thanks
>
>
>
> Sent from my Galaxy
>
>

-- 
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/92b3d7bc-52e3-4233-9eaf-7c7d4600bebbn%40googlegroups.com.