help

2019-04-29 Thread Tosin Ayoola
sup guys, i'm kinda lost and need help, i'm working on an electronic
noticeboard and course ware web app using django and i'm trying to have a
section on the notice board to show the listed of the most read news, using
the assignment tag, but with django ver 2.2 it seems not to be available,
can anyone help out

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn70Fo8pqWoq5SBVKohnscDHdoZmaVkSZxbXSCKWfELsJ4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: help

2019-04-29 Thread Tosin Ayoola
i want to creat an assignment template tag to allow me create a link on a
project i am working on but rite now it seems i can't use the django
assignment template tags, but now the tag has been removed in django
version > 2 is there a way i can do it.

On Mon, Apr 29, 2019 at 4:08 PM Britto .  wrote:

> Cannot understand your problem. Please describe it clearly or share the
> code zipped.
>
>
> Regards
> Britto
>
>
> On Mon, 29 Apr 2019 at 19:44, Tosin Ayoola  wrote:
>
>> sup guys, i'm kinda lost and need help, i'm working on an electronic
>> noticeboard and course ware web app using django and i'm trying to have a
>> section on the notice board to show the listed of the most read news, using
>> the assignment tag, but with django ver 2.2 it seems not to be available,
>> can anyone help out
>>
>> --
>> You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHLKn70Fo8pqWoq5SBVKohnscDHdoZmaVkSZxbXSCKWfELsJ4Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHLKn70Fo8pqWoq5SBVKohnscDHdoZmaVkSZxbXSCKWfELsJ4Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAF0v3b5cRGt3UMTU1jGm%3DFtVgOAK39%2BffuSijczysV7z4hadoQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAF0v3b5cRGt3UMTU1jGm%3DFtVgOAK39%2BffuSijczysV7z4hadoQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn738WzKg_N-TK%3DbVBqcwtN%2BAXRwiCRuOHhR8D5mut240Lg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: help

2019-04-29 Thread Tosin Ayoola
hello Nick,
so is there a way i can get pass this, cause i really need to get a link to
show the list of the most read information,

On Mon, Apr 29, 2019 at 4:10 PM Nick Sarbicki 
wrote:

> Hi Tosin,
>
> The assignment tag was deprecated in 1.9 and removed in 2.0.
>
> The details for this are here:
> https://docs.djangoproject.com/en/2.0/releases/1.9/#assignment-tag
>
> Basically it has been replaced with simple_tag. You should read the docs
> for that here:
> https://docs.djangoproject.com/en/2.2/howto/custom-template-tags/#simple-tags
>
>
> - Nick
>
>
> On Mon, Apr 29, 2019 at 3:14 PM Tosin Ayoola 
> wrote:
>
>> sup guys, i'm kinda lost and need help, i'm working on an electronic
>> noticeboard and course ware web app using django and i'm trying to have a
>> section on the notice board to show the listed of the most read news, using
>> the assignment tag, but with django ver 2.2 it seems not to be available,
>> can anyone help out
>>
>> --
>> You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHLKn70Fo8pqWoq5SBVKohnscDHdoZmaVkSZxbXSCKWfELsJ4Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHLKn70Fo8pqWoq5SBVKohnscDHdoZmaVkSZxbXSCKWfELsJ4Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGuvt904dLpe0AYHTro%2BaX3JvzmSyhYXDhbus8UA3Aa5W3Hwxg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGuvt904dLpe0AYHTro%2BaX3JvzmSyhYXDhbus8UA3Aa5W3Hwxg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn72HjL%2B3gY%2BjY1nMfs4aV5czL79Dq5eO9bbn3kr0ZKf8dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


help

2019-07-03 Thread Tosin Ayoola
Good day guyz
sorry i'm working on a django e-commerce project which i am new to, and i'm
stuck, i wan have a page that will display the list of all for the list of
all products under a particular category, which i have checked out on
stackoverflow, i tried every suggestion and yet since not working below is
my code hoping anyone can lead mr in d right direction

##View

def index(request):
products = Product.objects.all()
category = get_list_or_404(Category)
cat = Category.objects.filter(pk = id)
return render(request, 'shop/index.html', locals())

##product_list Page
Categories
{% if cat %}

{% for c in cat %}

 {{c.name}}

{% for product in cat.get_product %}
 {(product.name}}
{% endfor %}
{% endfor %}

{% else %}
 There's no item category yet
{% endif %}


-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn70PDKYwv30LhTsRaQEJ5V9mwE0xri-EdmwPp8ZoAC5nng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: help

2019-07-03 Thread Tosin Ayoola
this' my model
from django.db import models
from django.shortcuts import reverse

class Category(models.Model):
name = models.CharField(max_length = 100, db_index = True)
slug = models.SlugField(max_length = 130, db_index= True, unique = True)
class Meta:
db_table = 'categories'
verbose_name = 'catergories'

def __str__(self):
return self.name

def get_absolute_url(self):
return reverse("category-detail", args=[self.slug])

def get_product(self):
return Product.objects.filter(category= self.name)


class Product(models.Model):
name = models.CharField(max_length = 100, db_index = True)
slug = models.SlugField(max_length= 100, db_index= True)
brand = models.CharField(max_length = 100)
available = models.BooleanField(default= True)
meta_keywords = models.CharField(max_length = 150, blank = True)
stock = models.PositiveIntegerField()
updated = models.DateTimeField(auto_now= True)
price = models.DecimalField(max_digits = 10, decimal_places = 2, default =
0.00)
image = models.ImageField(upload_to = 'product_imgs', blank = True)
best_seller = models.BooleanField(default=False)
category = models.ForeignKey(Category, on_delete = 'MODEL.CASCADE',
related_name='product')
description = models.TextField()
created = models.DateTimeField()

class meta:
db_name = 'Product'
ordering = [' -created']
index_together = (('id', 'slug'),)

def __str__(self):
return self.name

def get_absolute_url(self):
return reverse("product-detail", args= [self.slug,
self.created.year,
self.created.strftime('%m'),
self.created.strftime('%d')])

On Thu, Jul 4, 2019 at 12:33 AM Charlotte Wood <
charlotte.w...@epiccharterschools.org> wrote:

> and, are you using a base.html?  and a form.html?  then customizing the
> template for the product_view?
>
>
>
> Charlotte Wood, MEd
>
> Educator
>
> (405) 578-5701
>
> Zoom Meeting ID#: 4055785701
>
> *Zoom URL:* https://epiccharterschools.zoom.us/j/2970513912
>
> Classroom Google Site:
> https://sites.google.com/epiccharterschools.org/charlottewoodclassroom/home
>
> Epic Technical Support: (405) 652-0935
>
>
>
> Jordan McKesson Principal
>
> 405-749-4550 ext. 309
>
> jordan.mckes...@epiccharterschools.org
>
> <http://facebook.com/epiccharterschools> <https://twitter.com/epiccharter>
> <https://www.instagram.com/epiccharterschools/>
> <https://www.youtube.com/user/EpicCharterSchools>
>
>
>
>
> On Wed, Jul 3, 2019 at 6:32 PM Charlotte Wood <
> charlotte.w...@epiccharterschools.org> wrote:
>
>> What is the name of the field in your model?  ie:  Title, Name, etc
>> so one option would be product.title   or product.name
>>
>> can you just put your model in here?
>>
>>
>> Charlotte Wood, MEd
>>
>> Educator
>>
>> (405) 578-5701
>>
>> Zoom Meeting ID#: 4055785701
>>
>> *Zoom URL:* https://epiccharterschools.zoom.us/j/2970513912
>>
>> Classroom Google Site:
>> https://sites.google.com/epiccharterschools.org/charlottewoodclassroom/home
>>
>> Epic Technical Support: (405) 652-0935
>>
>>
>>
>> Jordan McKesson Principal
>>
>> 405-749-4550 ext. 309
>>
>> jordan.mckes...@epiccharterschools.org
>>
>> <http://facebook.com/epiccharterschools>
>> <https://twitter.com/epiccharter>
>> <https://www.instagram.com/epiccharterschools/>
>> <https://www.youtube.com/user/EpicCharterSchools>
>>
>>
>>
>>
>> On Wed, Jul 3, 2019 at 6:25 PM Tosin Ayoola 
>> wrote:
>>
>>> Good day guyz
>>> sorry i'm working on a django e-commerce project which i am new to, and
>>> i'm stuck, i wan have a page that will display the list of all for the list
>>> of all products under a particular category, which i have checked out on
>>> stackoverflow, i tried every suggestion and yet since not working below is
>>> my code hoping anyone can lead mr in d right direction
>>>
>>> ##View
>>>
>>> def index(request):
>>> products = Product.objects.all()
>>> category = get_list_or_404(Category)
>>> cat = Category.objects.filter(pk = id)
>>> return render(request, 'shop/index.html', locals())
>>>
>>> ##product_list Page
>>> Categories
>>> {% if cat %}
>>> 
>>> {% for c in cat %}
>>> 
>>>  {{c.name}}
>>> 
>>> {% for product in cat.get_product %}
>>>  {(product.name}}
>>> {% endfor %}
>>> {% endfor %}
>>> 
>>> {% else %}
>>>  

Re: help

2019-07-04 Thread Tosin Ayoola
Thanks it was helpful learned about django-filter,
But i just want it simple as in , i already have the list of categories
displaying, i just need something that when the customer click on a
particular category name the customer will get redirected to another page
with all the list of products under that category
On Jul 4, 2019 02:08, "Charlotte Wood" <
charlotte.w...@epiccharterschools.org> wrote:

> OK, this is CLOSE and it may even workmaybe someone else can correct
> it, because I may have category/product backwards, and I put a filter in
> there so you can search for a product by attribute, but you'll have to
> tweak it...
>
> category_view.html
>
> {% extends "base.html" %}
> {% block content %}
>  Products in a Category 
> 
> {{ object_list.form.as_p }}
>   Search
> 
> {% for object in object_list.qs%}
> {% include 'category-inline.html'%}
> {% endfor %}
> {% endblock %}
>
>
>
>
> category_inline.html
>
> 
> 
>   
> 
> {{object.name}}-{{object.slug}}
> {% for product in object.category.category.all %}
> {{product.name}}--{{product.slug}}--{{product.brand}}--
> {{product.available}}{{product.stock}}
> {% endfor %}
>
>
> views.py
>
> from .filters import ProductFilter
>
> def category_view(request):
> my_title = "Products"
> qs = Category.objects.prefetch_related('category__category')
> category_list = ProductFilter(request.GET, queryset=qs)
> template_name = 'category_view.html'
> context = {'object_list': category_list,"title":my_title}
> return render (request, template_name, context)
>
>
>
> filters.py
>
>
> class ProductFilter(django_filters.FilterSet):
> category__name = 
> django_filters.CharFilter(lookup_expr='icontains',label='Product
> Name contains')
> class Meta:
> model = Product
> fields = {
> }
>
>
> Charlotte Wood, MEd
>
> Educator
>
> (405) 578-5701
>
> Zoom Meeting ID#: 4055785701
>
> *Zoom URL:* https://epiccharterschools.zoom.us/j/2970513912
>
> Classroom Google Site: https://sites.google.com/epiccharterschools.org/
> charlottewoodclassroom/home
>
> Epic Technical Support: (405) 652-0935
>
>
>
> Jordan McKesson Principal
>
> 405-749-4550 ext. 309
>
> jordan.mckes...@epiccharterschools.org
>
> <http://facebook.com/epiccharterschools> <https://twitter.com/epiccharter>
> <https://www.instagram.com/epiccharterschools/>
> <https://www.youtube.com/user/EpicCharterSchools>
>
>
>
>
> On Wed, Jul 3, 2019 at 6:37 PM Tosin Ayoola 
> wrote:
>
>> this' my model
>> from django.db import models
>> from django.shortcuts import reverse
>>
>> class Category(models.Model):
>> name = models.CharField(max_length = 100, db_index = True)
>> slug = models.SlugField(max_length = 130, db_index= True, unique = True)
>> class Meta:
>> db_table = 'categories'
>> verbose_name = 'catergories'
>>
>> def __str__(self):
>> return self.name
>>
>> def get_absolute_url(self):
>> return reverse("category-detail", args=[self.slug])
>>
>> def get_product(self):
>> return Product.objects.filter(category= self.name)
>>
>>
>> class Product(models.Model):
>> name = models.CharField(max_length = 100, db_index = True)
>> slug = models.SlugField(max_length= 100, db_index= True)
>> brand = models.CharField(max_length = 100)
>> available = models.BooleanField(default= True)
>> meta_keywords = models.CharField(max_length = 150, blank = True)
>> stock = models.PositiveIntegerField()
>> updated = models.DateTimeField(auto_now= True)
>> price = models.DecimalField(max_digits = 10, decimal_places = 2, default
>> = 0.00)
>> image = models.ImageField(upload_to = 'product_imgs', blank = True)
>> best_seller = models.BooleanField(default=False)
>> category = models.ForeignKey(Category, on_delete = 'MODEL.CASCADE',
>> related_name='product')
>> description = models.TextField()
>> created = models.DateTimeField()
>>
>> class meta:
>> db_name = 'Product'
>> ordering = [' -created']
>> index_together = (('id', 'slug'),)
>>
>> def __str__(self):
>> return self.name
>>
>> def get_absolute_url(self):
>> return reverse("product-detail", args= [self.slug,
>> self.created.year,
>> self.created.strftime('%m'),
>> self.created.strftime('%d')])
>>
>> On Thu, Jul 4, 2019 at 

allauth- signup redirect

2020-02-25 Thread Tosin Ayoola
halo guy, i'm using allauth for my authentication, but i wan redirect the
signup user to a page where they get update their profile detail, how do i
override the default success_url after the user have successfully signup ,

-- 
You received this message because you are subscribed 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/CAHLKn72_%2BsS%2Bcmz_CATcWWA9DQ7T-7_c86HjSBMfYKW9%2BsWzcA%40mail.gmail.com.


Re: allauth- signup redirect

2020-02-26 Thread Tosin Ayoola
thanks i've fixed it,

On Wed, Feb 26, 2020 at 8:33 AM Naveen Arora 
wrote:

> Hi Tosin,
>
>
> The simplest way would be to override the template account/signup.html with
> your own copy. If you examine that template you will see the following
> section:
>
> {% if redirect_field_value %}{% endif %}
>
> If you remove the if/endif part and change the value inside, the signup
> page will redirect to a specific page, even if you pass a next argument
> in the URL:
>
> 
>
>
> Cheers,
> Naveen Arora
>
> On Tuesday, 25 February 2020 23:58:02 UTC+5:30, Tosin Ayoola wrote:
>>
>> halo guy, i'm using allauth for my authentication, but i wan redirect the
>> signup user to a page where they get update their profile detail, how do i
>> override the default success_url after the user have successfully signup ,
>>
>>
>>
>>
>>
>> --
> You received this message because you are subscribed 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/7e5a5842-1aef-4afe-9cd1-46e1e40534fb%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/7e5a5842-1aef-4afe-9cd1-46e1e40534fb%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/CAHLKn73TrY-GpYSFwHFaAXWmkjcZc13Hc5a6nxifPL-raHyQsg%40mail.gmail.com.


Api

2020-02-27 Thread Tosin Ayoola
Good morning guyz,
I need help on this one,  it on writing api that will Shows the product
count for each manufacturer as users add products real time.
I have no idea how to solve this problem,  i will any suggestion
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/CAHLKn731GXi2A2i3-7DkVaPrD1Ta%2Bu%2B-ccjK7bA0uW4gdsHjJA%40mail.gmail.com.


help with creating checkbox form

2020-03-03 Thread Tosin Ayoola
Good day guyz,
i'm working on  a project that requires user making multiple selections
using checkbox after which these selected item get save to the database
after click on the on submit i've research on this and can't find any help,
i have it on html and javascript but i need the selected item saved to
database, can any one help me out, pls it urgent ?

-- 
You received this message because you are subscribed 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/CAHLKn71ganzUWEbc6HB%2B5yC%2B%3D0TyA7MYtjA3oJv_fAt4Ks6%3DpQ%40mail.gmail.com.


greeting

2020-03-03 Thread Tosin Ayoola
halo.
good day to you, thank for you response to my question about checkbox with
django, i could really use your help on that, that why i messaged your
privately, hoping you can help out, a sample code, models, views, form will
help, i will appreciate if you can help me out. 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/CAHLKn70_4k9ksCNz3SiaOGuSX%3DVWyGkW0_01ZuLJsDeLMqLvUw%40mail.gmail.com.


Re: greeting

2020-03-04 Thread Tosin Ayoola
saving values of a checkbox to the database

On Wed, Mar 4, 2020 at 1:23 AM Motaz Hejaze  wrote:

> Please let me know exactly the problem  , i dont remember the case you
> talking about
>
> On Tue, 3 Mar 2020, 8:47 pm Tosin Ayoola,  wrote:
>
>> halo.
>> good day to you, thank for you response to my question about checkbox
>> with django, i could really use your help on that, that why i messaged your
>> privately, hoping you can help out, a sample code, models, views, form will
>> help, i will appreciate if you can help me out. 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/CAHLKn70_4k9ksCNz3SiaOGuSX%3DVWyGkW0_01ZuLJsDeLMqLvUw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHLKn70_4k9ksCNz3SiaOGuSX%3DVWyGkW0_01ZuLJsDeLMqLvUw%40mail.gmail.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/CAHV4E-ctYWxhoCYn71Piqd6aViBn0v9NtNyXz9%2BQZL0Wa1Rk6g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHV4E-ctYWxhoCYn71Piqd6aViBn0v9NtNyXz9%2BQZL0Wa1Rk6g%40mail.gmail.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/CAHLKn71rCu%2BOWKZt1TGToAxoX6AGFfnQRTWCrcwPPStfmFphHA%40mail.gmail.com.


Re: greeting

2020-03-04 Thread Tosin Ayoola
the project is a services subscription platform, i wan to list out services
offered, then user make a selection for the choice the wan, after that the
click submit to make payment, now i have the services listed in html, my
challenge is how do i save this selected services to django models
alongside the price for each service

On Wed, Mar 4, 2020 at 11:46 AM Tosin Ayoola  wrote:

> saving values of a checkbox to the database
>
> On Wed, Mar 4, 2020 at 1:23 AM Motaz Hejaze  wrote:
>
>> Please let me know exactly the problem  , i dont remember the case you
>> talking about
>>
>> On Tue, 3 Mar 2020, 8:47 pm Tosin Ayoola,  wrote:
>>
>>> halo.
>>> good day to you, thank for you response to my question about checkbox
>>> with django, i could really use your help on that, that why i messaged your
>>> privately, hoping you can help out, a sample code, models, views, form will
>>> help, i will appreciate if you can help me out. 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/CAHLKn70_4k9ksCNz3SiaOGuSX%3DVWyGkW0_01ZuLJsDeLMqLvUw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAHLKn70_4k9ksCNz3SiaOGuSX%3DVWyGkW0_01ZuLJsDeLMqLvUw%40mail.gmail.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/CAHV4E-ctYWxhoCYn71Piqd6aViBn0v9NtNyXz9%2BQZL0Wa1Rk6g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHV4E-ctYWxhoCYn71Piqd6aViBn0v9NtNyXz9%2BQZL0Wa1Rk6g%40mail.gmail.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/CAHLKn72mUAL73kvWEZF5QtUOfyK8f1vftsV5%2B8_5dT%2Ber-W-bw%40mail.gmail.com.


help on saving multiple html checkbox option to db

2020-03-04 Thread Tosin Ayoola
i'm working on a project that render services to client, for client to
subscribe to a package the select service the want after that they click
submit to proceed to payment, now i have the services listed in html, my
challenge is how do i save this selected services to django models
alongside the price for each service

attached below is my html code

-- 
You received this message because you are subscribed 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/CAHLKn73yVtad6fX5PXAdrmAJ3YrLtZGRrGn_s1%3DQyhrTUnh5-Q%40mail.gmail.com.


help on how to pass a many to many field to form template

2020-03-05 Thread Tosin Ayoola
good day,
I have to models, using a many to many relationship, I want to access the
fields in they model in my form template, how do i achieve this?
i attached my view, model and template code screenshot, hopping anyone can
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/CAHLKn73RQSEYi%3D2C_9VpQ9YoKq11PXYHaHGoMuh5OJDk1nOXDg%40mail.gmail.com.


issues deploying django project to cpanel

2020-03-05 Thread Tosin Ayoola
good morning guys,
i'm trying to deploy my project on cpanel but i'm encountering this err
msg, hoping anyone can help me out
i have the screen shot of the msg below tnks

-- 
You received this message because you are subscribed 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/CAHLKn70KjXEbFJw%3Dy0A9RTmNitnymG5p4Y1Ja9NopYbWAPR2kw%40mail.gmail.com.


issue with bootstrap

2018-08-09 Thread Tosin Ayoola
Halo guyz working on a Django project that requires me using bootstrap but 
the issue I'm having is that I can use the load static to include bootstrap 
@ be base_generic.html, but can't use it with the index page, tried fixing 
it, what should I do, how to i fix this and move on ?

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a8940bd0-1806-4c50-a366-43c969be3a7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Recursive one-to-many foreign key on the same table

2018-08-09 Thread Tosin Ayoola
thanks for the response but can you help me go through the code probably
i'm the person making mistake in my code this the github link:
https://github.com/olaneat/ask_the_schools

On Thu, Aug 9, 2018 at 3:00 PM, Marius Räsener  wrote:

> Hey Philip,
>
> while I can't help you with your actual implementation I wanted to link
> you to this presentation abuot the topic, it's worth time spend I think ...
>
> https://www.youtube.com/watch?v=CRxjoklS8v0&index=7&list=PLY_che_
> OEsX3aZo5RttI6Fj2XZ7nTjhBu
>
> recursive models are tricky, especially to query afterwards - your example
> might be not super complicated (yet) but still, I recommend the video...
>
> Marius
>
> Am Donnerstag, 9. August 2018 14:42:13 UTC+2 schrieb Phlip Pretorius:
>>
>> I want to build a one-to-many recursive foreign key on a table in Django.
>>
>> The concept is something like this:
>>
>> Table: staff/person
>>
>> staff numberSurnameFirstnamesSupervisor
>> 4637ZondoJulien
>> 859076VanderbildtJohn4637
>>
>> That is, Julien Zondo is John Vanderbildt's supervisor and to enter the
>> staff number in the supervisor field, it must exist in the staff table.
>>
>> Each staff member can have only one supervisor but a person can be the
>> supervisor of many staff members.
>>
>> I have read the documentation at https://docs.djangoproject.com
>> /en/2.1/ref/models/fields/#recursive-relationships but i do not get the
>> gist of it
>>
>> I want to build an index table on three levels where a level 1 index will
>> have no predecessor
>> Level 2 indexes must have a level 1 predecessor and a level 3 index must
>> have a level 2 pedecessor.
>>
>> Can this be done by using recursive relationships or should this be done
>> in a business layer?
>>
>> Here is part of the definition of the model:
>> 
>> =
>> Class DecisionIndex(models.Model):
>> """A mechanism to index decision taken by a committee"""
>> IndexCode = models.CharField(max_length=6)
>> IndexDesc = models.CharField(max_length=80, null=False)
>> IndexLevel = models.IntegerField(choices=list(zip(range(1, 4),
>>   range(1, 4))),
>>  null=False)
>> IndexPredecessor = models.ForeignKey('self',
>>  on_delete=models.CASCADE,
>>  limit_choices_to={'IdexLevel':
>> 1},)
>> 
>> 
>>
>> I get the following error message:
>> no such column: komadm_apps_decisionindex.IndexPredecessor_idno such
>> column:
>>
>> Any help will be welcome.
>>
>> Regards,
>>
>> Phlip
>>
> --
> You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/bc512a99-625d-4ac1-8a2d-0ffd4a5692be%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn72cYVcYVO%3Dsp7srrSkt2TD8uwa2MMiDP118-pF7g29tHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: issue with bootstrap

2018-08-10 Thread Tosin Ayoola
oh Thanks for the reply, I load it at each of the templates i intend using
it with but the I still getting same issues, it only shows the content of
the generic page, even after using the loading it.

On Thu, Aug 9, 2018 at 7:10 PM, Kasper Laudrup 
wrote:

> Hi Tosin,
>
> On 09/08/2018 14.52, Tosin Ayoola wrote:
>
>>
>>   Halo guyz working on a Django project that requires me using bootstrap
>>   but the issue I'm having is that I can use the load static to include
>>   bootstrap @ be base_generic.html, but can't use it with the index
>>   page, tried fixing it, what should I do, how to i fix this and move on ?
>>
>>
> You're question is extremely vague, so it's not really clear how you are
> using bootstrap and what your problem is.
>
> I have personally used django-bootstrap4:
>
> https://django-bootstrap4.readthedocs.io/en/latest/
>
> Which works well in my experience.
>
> If you have problems using it in other templates than your base template,
> remember that you need to load it on every template you use, even if it's
> extending another template that has already loaded the template library.
>
> Hope that helps. Otherwise, please provide some more information.
>
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/django-users/7a80655d-3fd3-8f07-5374-2cc6eb12984a%40stacktrace.dk.
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn71Cbo5EZqsW46FVvGP%2B4CSCWwfzzrE1gkJ%2BhUW%2B8XDwtA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: issue with bootstrap

2018-08-10 Thread Tosin Ayoola
thanks, but the browser is actually loading it because, the bootstrap i'm
using at the base.html is been loaded by the same browser

On Fri, Aug 10, 2018 at 9:17 AM, Kasper Laudrup 
wrote:

> Hi Tosin,
>
> On 08/10/2018 09:57 AM, Tosin Ayoola wrote:
>
>> oh Thanks for the reply, I load it at each of the templates i intend
>> using it with but the I still getting same issues, it only shows the
>> content of the generic page, even after using the loading it.
>>
>>
> It sounds like the browser is not loading the bootstrap CSS files. Try to
> look at the developer console in your browser and see if any errors are
> shown there.
>
> Also, please provide some more details.
>
> Are you using the bootstrap4 Django package I linked to or are you loading
> bootstrap some other way?
>
> Which errors do you see in the browser console (if any)?
>
> Which errors do you see in the output from django runserver (if any)?
>
> Or anything else that might help others help you.
>
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/django-users/681388ae-8290-28be-c84e-ed52ccc97dfc%40stacktrace.dk.
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn70Txs-2ftkGpUmaFO4Mb9NOsJdjWd82fbTv6NfoJzhp%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: issue with bootstrap

2018-08-10 Thread Tosin Ayoola
Maybe it is my error that is leading to that, I have it uploaded on github
this is the link https://github.com/olaneat/ask_the_schools, probably you
can be of help.
thanks

On Fri, Aug 10, 2018 at 9:21 AM, Tosin Ayoola 
wrote:

> thanks, but the browser is actually loading it because, the bootstrap i'm
> using at the base.html is been loaded by the same browser
>
> On Fri, Aug 10, 2018 at 9:17 AM, Kasper Laudrup 
> wrote:
>
>> Hi Tosin,
>>
>> On 08/10/2018 09:57 AM, Tosin Ayoola wrote:
>>
>>> oh Thanks for the reply, I load it at each of the templates i intend
>>> using it with but the I still getting same issues, it only shows the
>>> content of the generic page, even after using the loading it.
>>>
>>>
>> It sounds like the browser is not loading the bootstrap CSS files. Try to
>> look at the developer console in your browser and see if any errors are
>> shown there.
>>
>> Also, please provide some more details.
>>
>> Are you using the bootstrap4 Django package I linked to or are you
>> loading bootstrap some other way?
>>
>> Which errors do you see in the browser console (if any)?
>>
>> Which errors do you see in the output from django runserver (if any)?
>>
>> Or anything else that might help others help you.
>>
>> 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+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/django-users/681388ae-8290-28be-c84e-ed52ccc97dfc%40stacktrace.dk.
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn71MR5CxnAzVFbAtZovtRv-8xeFqKph4RjuydxVotbiCmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: template tag help please?

2018-08-23 Thread Tosin Ayoola
not properly routing my urls as in, i don't understand

On Thu, Aug 23, 2018 at 2:06 PM ireoluwa fakeye  wrote:

> You Are not properly routing your  urls
>
> On Thu, 23 Aug 2018, 14:03 Tosin Ayoola,  wrote:
>
>> good day please i'm having issues, attached below is one of the error i'm
>> getting also ive been trying to add bootstrap glyphicon to my project but
>> it just display the text without the glyphicon,
>>
>> On Fri, Aug 17, 2018 at 12:54 PM MikeKJ  wrote:
>>
>>> I want to pass 2 variables to a templatetag from within a template, a
>>> name and a date (eg, John 29/09/2018) to output the result of the
>>> templatetag def.
>>>
>>> The reason I want to do this is:
>>>
>>> From a list of all names:
>>>
>>> The name comes from a model that has a foreign key to another model that
>>> has actions performed by that name by date and I want to output the action
>>> taken on that date so something like:
>>>
>>> from django import template
>>> from django.conf import settings
>>> from django.utils.html import escape
>>> from user.models import person
>>> from action.models import data
>>>
>>> def (get_action):
>>> action = Data.objects.get.filter(person=name).filter(date=date)
>>> return action
>>>
>>> but how do I pass the variables in the 1st place 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 post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/8d7b9f60-9f88-41c6-8fec-cf858d7e6574%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/8d7b9f60-9f88-41c6-8fec-cf858d7e6574%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHLKn714iMAzyE%3DaXn_tyJQos-xLWPrWS6BEfFq013%3DS-rmShA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHLKn714iMAzyE%3DaXn_tyJQos-xLWPrWS6BEfFq013%3DS-rmShA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAO87g13Nmssbp_VPv6ktJmpRrSOasusm%2BvPnDhKGZe_o9yBZ%2BQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAO87g13Nmssbp_VPv6ktJmpRrSOasusm%2BvPnDhKGZe_o9yBZ%2BQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn70NnEcJLNH5-8nnc%2B90TaTx3iqCiXuiVAdd6xop_teX7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: template tag help please?

2018-08-23 Thread Tosin Ayoola
i have the code on git actually because i'm trying to get the add a file at
the admin page but i'm getting the error


On Thu, Aug 23, 2018 at 2:17 PM ireoluwa fakeye  wrote:

> Sorry didn't look at it well ,can I see a screen shot of your code
>
> On Thu, 23 Aug 2018, 14:10 Tosin Ayoola,  wrote:
>
>> not properly routing my urls as in, i don't understand
>>
>> On Thu, Aug 23, 2018 at 2:06 PM ireoluwa fakeye 
>> wrote:
>>
>>> You Are not properly routing your  urls
>>>
>>> On Thu, 23 Aug 2018, 14:03 Tosin Ayoola,  wrote:
>>>
>>>> good day please i'm having issues, attached below is one of the error
>>>> i'm getting also ive been trying to add bootstrap glyphicon to my project
>>>> but it just display the text without the glyphicon,
>>>>
>>>> On Fri, Aug 17, 2018 at 12:54 PM MikeKJ 
>>>> wrote:
>>>>
>>>>> I want to pass 2 variables to a templatetag from within a template, a
>>>>> name and a date (eg, John 29/09/2018) to output the result of the
>>>>> templatetag def.
>>>>>
>>>>> The reason I want to do this is:
>>>>>
>>>>> From a list of all names:
>>>>>
>>>>> The name comes from a model that has a foreign key to another model
>>>>> that has actions performed by that name by date and I want to output the
>>>>> action taken on that date so something like:
>>>>>
>>>>> from django import template
>>>>> from django.conf import settings
>>>>> from django.utils.html import escape
>>>>> from user.models import person
>>>>> from action.models import data
>>>>>
>>>>> def (get_action):
>>>>> action = Data.objects.get.filter(person=name).filter(date=date)
>>>>> return action
>>>>>
>>>>> but how do I pass the variables in the 1st place 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 post to this group, send email to django-users@googlegroups.com.
>>>>> Visit this group at https://groups.google.com/group/django-users.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/8d7b9f60-9f88-41c6-8fec-cf858d7e6574%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/8d7b9f60-9f88-41c6-8fec-cf858d7e6574%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> --
>>>> You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/django-users.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAHLKn714iMAzyE%3DaXn_tyJQos-xLWPrWS6BEfFq013%3DS-rmShA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAHLKn714iMAzyE%3DaXn_tyJQos-xLWPrWS6BEfFq013%3DS-rmShA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAO87g13Nmssbp_VPv6ktJmpRrSOasusm%2BvPnDhKGZe_o9yBZ%2BQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAO87g13Nmssbp_VPv6ktJmpRrSOasusm%2BvPnDhKGZe_o9yBZ%2BQ%40m

Re: template tag help please?

2018-08-23 Thread Tosin Ayoola
this is the link https://github.com/olaneat/ask_the_schools will rili b
glad if u can help


On Thu, Aug 23, 2018 at 2:31 PM Tosin Ayoola  wrote:

> i have the code on git actually because i'm trying to get the add a file
> at the admin page but i'm getting the error
>
>
> On Thu, Aug 23, 2018 at 2:17 PM ireoluwa fakeye  wrote:
>
>> Sorry didn't look at it well ,can I see a screen shot of your code
>>
>> On Thu, 23 Aug 2018, 14:10 Tosin Ayoola,  wrote:
>>
>>> not properly routing my urls as in, i don't understand
>>>
>>> On Thu, Aug 23, 2018 at 2:06 PM ireoluwa fakeye 
>>> wrote:
>>>
>>>> You Are not properly routing your  urls
>>>>
>>>> On Thu, 23 Aug 2018, 14:03 Tosin Ayoola, 
>>>> wrote:
>>>>
>>>>> good day please i'm having issues, attached below is one of the error
>>>>> i'm getting also ive been trying to add bootstrap glyphicon to my project
>>>>> but it just display the text without the glyphicon,
>>>>>
>>>>> On Fri, Aug 17, 2018 at 12:54 PM MikeKJ 
>>>>> wrote:
>>>>>
>>>>>> I want to pass 2 variables to a templatetag from within a template, a
>>>>>> name and a date (eg, John 29/09/2018) to output the result of the
>>>>>> templatetag def.
>>>>>>
>>>>>> The reason I want to do this is:
>>>>>>
>>>>>> From a list of all names:
>>>>>>
>>>>>> The name comes from a model that has a foreign key to another model
>>>>>> that has actions performed by that name by date and I want to output the
>>>>>> action taken on that date so something like:
>>>>>>
>>>>>> from django import template
>>>>>> from django.conf import settings
>>>>>> from django.utils.html import escape
>>>>>> from user.models import person
>>>>>> from action.models import data
>>>>>>
>>>>>> def (get_action):
>>>>>> action = Data.objects.get.filter(person=name).filter(date=date)
>>>>>> return action
>>>>>>
>>>>>> but how do I pass the variables in the 1st place 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 post to this group, send email to django-users@googlegroups.com.
>>>>>> Visit this group at https://groups.google.com/group/django-users.
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/django-users/8d7b9f60-9f88-41c6-8fec-cf858d7e6574%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/django-users/8d7b9f60-9f88-41c6-8fec-cf858d7e6574%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
>>>>> Visit this group at https://groups.google.com/group/django-users.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/CAHLKn714iMAzyE%3DaXn_tyJQos-xLWPrWS6BEfFq013%3DS-rmShA%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAHLKn714iMAzyE%3DaXn_tyJQos-xLWPrWS6BEfFq013%3DS-rmShA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users+unsubs

Re: template tag help please?

2018-08-26 Thread Tosin Ayoola
good day guys I'm working on a project but currently I'm having
issues, which is I created a model to save some images files & I
created a template to display the images but the issue now is for loop
isn't displaying the files at the template

On 8/23/18, Tosin Ayoola  wrote:
> this is the link https://github.com/olaneat/ask_the_schools will rili b
> glad if u can help
>
>
> On Thu, Aug 23, 2018 at 2:31 PM Tosin Ayoola 
> wrote:
>
>> i have the code on git actually because i'm trying to get the add a file
>> at the admin page but i'm getting the error
>>
>>
>> On Thu, Aug 23, 2018 at 2:17 PM ireoluwa fakeye 
>> wrote:
>>
>>> Sorry didn't look at it well ,can I see a screen shot of your code
>>>
>>> On Thu, 23 Aug 2018, 14:10 Tosin Ayoola,  wrote:
>>>
>>>> not properly routing my urls as in, i don't understand
>>>>
>>>> On Thu, Aug 23, 2018 at 2:06 PM ireoluwa fakeye 
>>>> wrote:
>>>>
>>>>> You Are not properly routing your  urls
>>>>>
>>>>> On Thu, 23 Aug 2018, 14:03 Tosin Ayoola, 
>>>>> wrote:
>>>>>
>>>>>> good day please i'm having issues, attached below is one of the error
>>>>>> i'm getting also ive been trying to add bootstrap glyphicon to my
>>>>>> project
>>>>>> but it just display the text without the glyphicon,
>>>>>>
>>>>>> On Fri, Aug 17, 2018 at 12:54 PM MikeKJ 
>>>>>> wrote:
>>>>>>
>>>>>>> I want to pass 2 variables to a templatetag from within a template,
>>>>>>> a
>>>>>>> name and a date (eg, John 29/09/2018) to output the result of the
>>>>>>> templatetag def.
>>>>>>>
>>>>>>> The reason I want to do this is:
>>>>>>>
>>>>>>> From a list of all names:
>>>>>>>
>>>>>>> The name comes from a model that has a foreign key to another model
>>>>>>> that has actions performed by that name by date and I want to output
>>>>>>> the
>>>>>>> action taken on that date so something like:
>>>>>>>
>>>>>>> from django import template
>>>>>>> from django.conf import settings
>>>>>>> from django.utils.html import escape
>>>>>>> from user.models import person
>>>>>>> from action.models import data
>>>>>>>
>>>>>>> def (get_action):
>>>>>>> action = Data.objects.get.filter(person=name).filter(date=date)
>>>>>>> return action
>>>>>>>
>>>>>>> but how do I pass the variables in the 1st place 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 post to this group, send email to django-users@googlegroups.com.
>>>>>>> Visit this group at https://groups.google.com/group/django-users.
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/django-users/8d7b9f60-9f88-41c6-8fec-cf858d7e6574%40googlegroups.com
>>>>>>> <https://groups.google.com/d/msgid/django-users/8d7b9f60-9f88-41c6-8fec-cf858d7e6574%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
>>>>>> Visit this group at https://groups.google.com/group/django-users.
>>>>>> To view this discussion on the web visit
>>>&g

Re: Not able to connect mongo DB with django2.1

2018-09-17 Thread Tosin Ayoola
hw fa guyz I'm working on a project that request that i used form wizard
subclass to create a view now d issues im getting is that i can't use the
subclass to create a url pattern to access the form, so who kinda knw a way
around this

On Mon, Sep 17, 2018 at 12:16 PM akshat ahuja 
wrote:

> Hey guys,
> I am a beginner to Django and I am making an application in which I have
> to connect to MongoDB to retrieve data,, But I am not able to connect to
> MongoDB, can someone please help me?
>
> Regards,
> Akshat Ahuja
>
> --
> You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPaL-tfACSpraKUo2b8hLMvqmGrktMa9R0xkSRrQSy3iNdCWrQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn71V4qfZDVCVm00aKx7_035Jn6MHMj%2Bg_9B12Taox_0f9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


how do i use the save method in multi step form

2018-11-09 Thread Tosin Ayoola
hallo developers
i Created a multi step form but the issues is that i can't save the data to 
the database and that the purpose of creating the form, please how can i 
fix this or can anyone help me?
, below is my views  code 

class add_School(SessionWizardView):
template_name =  'schoolprofile.html'
file_storage = 
FileSystemStorage(location=os.path.join(settings.MEDIA_ROOT, 'images', 
'videos'))

def done(self, form_list, form_dict, **kwargs):
form_data = process_data(form_list)

return render('index.html',  { 'form_data' :form_data})


def process_data(form_list):
form_data = [form.cleaned_data for form in form_list]
data = ['User', 'School', 'school_data']

send_mail(form_data[0]['Schools'],
  form_data[1]['school_data'],
  ['tosinayoo...@gmail.com', ], fail_silently = False)



return form_data

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/972c1571-6465-4f57-a25d-b07e0e95eb31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why I can't pass anything to my html? Django 2.1

2018-11-12 Thread Tosin Ayoola
halo,
working on a contact us form to receive information from the user but my
issue is the data doesn't get save to the database and i'm not getting any
error message can anyone help out
below is my view an forms.py

On Mon, Nov 12, 2018 at 1:12 PM Rookies DJ  wrote:

> I been trying 2 weeks on trying to pass variables form Django views into
> html, but every time I run my code, it works but it doesn't display the
> variable I see
>
> from django.shortcuts import render
> from zigview.models import tank_system
>
> def index(request):
> return render(request,'FrounterWeb/includes.html')
>
> def login(requset):
> return render(requset, 'FrounterWeb/login.html')
>
>
> def timedex(requset):
> tank = tank_system.object.get(id(5))
> print(tank)
> return render(requset, "FrounterWeb/body.html",tank)
>
>
> Here my models
>
> from django.db import models
>
>
> class user(models.Model):
> username = models.CharField(max_length=50)
> password = models.CharField(max_length=50)
>
>
> class tank_system(models.Model):
> Ph = models.DecimalField(max_digits=2, decimal_places=1)
> EC = models.DecimalField(max_digits=2, decimal_places=1)
> temp = models.DecimalField(max_digits=2, decimal_places=0)
> level = models.IntegerField(primary_key=True, default=0)
> data = models.DateTimeField(auto_now=True)
>
>
> Here my HTML that i try pass variable in
>
> 
> 
>   Time
>   Tank level
>   EC
>   pH
>   room temptures
>   Water temptrure
> 
> 
>   22.30
>   900 lits
>   {{tank}}
>   7.3
>   {{tank}}
>   24
> 
>
> 
>
>
> My HTML body structures
>
> Web
>
> ├── templates
> │   ├── index.hmtl
> │   │   └── includes
> │   ├── body.hml
> │   ├── header.html
>
>   This my urls files;
>
> from django.contrib import admin
> from django.urls import include, path
> from django.views.generic.base import TemplateView
>
> urlpatterns = [
> path(r'^admin/$', admin.site.urls),
> path('account', include('django.contrib.auth.urls')),
> path('', include('zigview.urls')),
> path(r'', TemplateView.as_view(template_name='index.html'), name = 
> 'myapp'),
> ]
>
> --
> You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8123c3d9-e972-426f-9b1f-46a463b98548%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn72vc8NQ1OvR46Dg3Uf_EZEfp2zfNbwCRHja%2B6XHZqWx5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


can't save data to the database

2018-11-12 Thread Tosin Ayoola
halo,
working on a contact us form to receive information from the user but my
issue is the data doesn't get save to the database and i'm not getting any
error message can anyone help out
below is my view an forms.py

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn70gTCa98GpXiYfm1kJqqQZHYiaYz4U39ocBCuGa4n-3Lw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


help

2018-11-27 Thread Tosin Ayoola
Good day guyz trying to create a radio button and checkbox and save it to
the database using my models, but it doesn't seems to be working the way i
want it, hoping anyone can help me out below is my code.


*models.py*

class Sports(models.Model):
  sport = models.CharField(max_length = 150)

class School(models.Model):
  SPORTS = models.ManyToManyField(Sports)

* forms.py*
class Data(ModelForm)
  SPORT = forms.MultipleChoiceField(
widget=forms.CheckboxSelectMultiple,
queryset=Sports.objects.all(),)



*will be glad if i can get any one to 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn71H%3DeFN4i_ccusvQFVD8yb-Jxib%3D3y8XH%2B6JgcYTF3oQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Developing E - Commerce Website

2019-07-23 Thread Tosin Ayoola
Check out django 2 by example, I'm currently working on an ecommerce site
myself
On Jul 23, 2019 12:34, "Lim Kai Wey"  wrote:

> Greetings,
>
> A new Django user here. I would like to ask if anyone could recommend any
> guides or tips in developing the functionalities in an E-Commerce website
> e.g.( Add to Cart).
> As well as the model setup for the products, is it better to have the all
> the products underneath one model OR it is better to separate them like,
> Book (Have all the fields required for books), Book Instance(Availability
> Check Box, UUID to keep track of transaction etc. etc.
>
> Sorry for the long question. Thanks for reading and hope to hear some
> favorable replies.
> Thank you once again!
>
> Regards,
> Kai Wey
>
> --
> You received this message because you are subscribed 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/0227c538-6c00-4afa-9e3a-a09f543d1c8c%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/CAHLKn7398Qwi9-oOo%3D%2BFjgpuRsPZfwHQui3wO4TA2U0_UQk%3DTw%40mail.gmail.com.


Re: Start-up project for fresher student:

2019-08-02 Thread Tosin Ayoola
go with blog, school management system

On Tue, Jul 23, 2019 at 1:20 AM Abhishek Anvekar 
wrote:

> Go with creating a e-commerce site.
>
> On Tue 23 Jul, 2019, 12:48 AM iampawam goswami, <
> callmekumarpa...@gmail.com> wrote:
>
>> Hello everybody
>> I what starts my django project what will be the best startup application
>> for practices to fresher...Please 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAM%3DXy2p1SiSL2WoPvCc8g_%3DB_zaojf%3DfWkDBA_dpDfwd4gtgPQ%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/CAF_nNUpCquK9xB-A%3DZ8n5X9_Oe_nu5s%2BaQbeC9H02-wh2aKtCw%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/CAHLKn73ut4mpZVOTLTy3daTtUcD8HfUjqQLmbJzRdb%3DKx8zvCw%40mail.gmail.com.


Test

2019-08-06 Thread Tosin Ayoola
Halo guyz,  working on an e-commerce project & I rili wan write the test
for this project,  hoping someone can lead me in direction to go

-- 
You received this message because you are subscribed 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/CAHLKn716OH2SPV1S5N4JfOc%3DMpfpN-NaKzoaRAb%2B0HwOS1KwOA%40mail.gmail.com.


Help

2019-08-14 Thread Tosin Ayoola
Hallo guyz, working on a blog project with the functionality that requires
working with, calendar 📅,  something like having a event manager,  to fix
a reminder for a particular date & I don't have idea how to do that,
 hoping anyone can help
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/CAHLKn739UvVdEzuLjSLJtTMef-B0X_N1KLBDprgy8JvXjms2Yg%40mail.gmail.com.


Re: operational error no such column: accounts_businessownercreate.id

2019-08-14 Thread Tosin Ayoola
Did u do d python manage.py makemigrations, python manage.py migrate, that
d main cause of diz type of errors

On Aug 14, 2019 18:32, "Kean"  wrote:

Hi,

I'm new to django and python.

I created a database, but Every time I access my database on the backend, I
get the no such column exists error.
I cant understand how a column i didn't create, exists in the database, and
is preventing dbase management.

I have attached s.shot of the error.

Im using the sqlite3 db with version django version 2.2.3

Please can anyone help with ID, root cause and fix?

Best,

Kean


-- 
You received this message because you are subscribed 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/8c5e159a-a6b2-4cfb-acf9-5019a1a599ae%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/CAHLKn72oj4MoXGCHpZj6S6QijMb7ixx-MREszxD8XHo3hptraA%40mail.gmail.com.


Re: operational error no such column: accounts_businessownercreate.id

2019-08-14 Thread Tosin Ayoola
Wat I normally do is 2 delete my sqlite.db file and all d migration file in
d migration 📁,  then I run the python manage.py makemigrations,  migrate
to create a new db file,  try that and it will definitely wrk

On Aug 14, 2019 18:32, "Kean"  wrote:

Hi,

I'm new to django and python.

I created a database, but Every time I access my database on the backend, I
get the no such column exists error.
I cant understand how a column i didn't create, exists in the database, and
is preventing dbase management.

I have attached s.shot of the error.

Im using the sqlite3 db with version django version 2.2.3

Please can anyone help with ID, root cause and fix?

Best,

Kean


-- 
You received this message because you are subscribed 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/8c5e159a-a6b2-4cfb-acf9-5019a1a599ae%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/CAHLKn71T5P0JZSaw23-CCVnhFQx2dO3_ci8PzJKzDdGu%2BvU77Q%40mail.gmail.com.


Re: Form fill out and review

2019-08-15 Thread Tosin Ayoola
Ohk cool so Wat do u need help on,  Wat have u done so far

On Aug 15, 2019 12:16, "Django Dojo"  wrote:

> Hello,
> I’m new to Django and I’m looking to do the following steps:
> 1. Person fills out a form
> 2. Person reviews/previews the information they fill out
> 3. Once it’s reviewed they can post it to website
>
> --
> You received this message because you are subscribed 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/b971033c-4a8d-40cf-afd0-f3213949e0f0%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/CAHLKn73XsT_s7mkQVeeK6cCiKuqEytAcKAb8Yxtw_8Gk34fCxA%40mail.gmail.com.


Re: Exception value name is not defined

2019-08-16 Thread Tosin Ayoola
Can u screenshot d error,  that will b more explanatory

On Aug 15, 2019 19:07, "Kean"  wrote:

Hi,

I have written the following code in views.py

def editremovebusiness(request):
data = Businessownercreate.objects.all()
context = {
'Creator': obj.Creator,
'Micro_Small_Medium': obj.Micro_Small_Medium,
}
return render(request, 'editremovebusiness.html', context={"data":data})

when I save it and check the url

it returns

Exception Type: NameError
Exception Value:

name 'obj' is not defined



Is anyone familiar with this issue, please advise cause and fix?

Best,

K









-- 
You received this message because you are subscribed 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/8b426d60-4a54-4ec4-b130-05c0ae69cdd3%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/CAHLKn70nK_QS_6E%2Bui7Gx4Q4xfE9sv4fbweEQ7Rc0snsa7YkEw%40mail.gmail.com.


Re: Template Does Not Exist

2019-08-20 Thread Tosin Ayoola
D problem is either in ur settings.py file u didn't properly set ur
template dir correctly (which u can do as follows in ur settings.py In the
template setting section,  set d value of ur  DIR =[os.path.join(BASE_DIR,
'templates'] den create a templates folder either in ur app dir or project
dir,  in the templates folder  📁 create another  folder 📁 with the name
of your app,  then inside that folder create ur html file)  and make sure
in your view u reference the html file as eg return render(request,
'app_name/index.html',  {'value_to_display_in_html_file':
value_to_display_in_html_file}),
that way

On Aug 19, 2019 11:47, "Naty Mina"  wrote:

> *,hi guys*
> finally i could run my project but when i'm trying to open the home page
> that built i get error template does not exist
> and when i look at the details i see that django.engine looked for the
> template when it''s not in.
> the html file is in the same directory as the views and that's when i want
> django to look for it.
> i need your help to fix that
> please
> i attached files so you can see
> *THANK YOU*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/b1d04ad5-f3aa-454e-ba3f-8983c9201920%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/CAHLKn706xaKMn3g3DgN49kK6kbCQNz7KNe_qCu8_J9B0ryFgfw%40mail.gmail.com.


Re: Regarding to suggestion for registration page

2019-08-20 Thread Tosin Ayoola
Using httpRedirect to d view 4 the URL u want user to b redirected to

On Aug 21, 2019 06:21, "RONAK JAIN"  wrote:

> I am trying to redirect my registration page but, I am not getting *please
> check my attached screenshot* and please let me know where I am doing
> wrong...
>
>
>
> On Tue, Aug 20, 2019 at 10:26 AM Sipum  wrote:
>
>> Hey Ronit,
>>
>> It is very simple.
>> Just do return redirect ('/name used in url')
>>
>> If ur url for home page be like,  path('home', views.index, name='home')
>>
>> Then u hv to write as redirect('/home').
>>
>>
>> On Tue, 20 Aug, 2019, 9:43 AM Ronit Mishra, 
>> wrote:
>>
>>> Hi,
>>>
>>> If I've understood your issue correctly, you probably just need to add
>>> this lil' snippet in your settings.py
>>>
>>> LOGIN_REDIRECT_URL = '/' (or wherever you wanna redirect after login)
>>>
>>> Let me know if it works out for you!
>>>
>>> Regards,
>>> Ronnie
>>>
>>> On Tue, Aug 20, 2019 at 2:40 AM Smovie Makers Club 
>>> wrote:
>>>
 return redirect('{{ request.scheme }}://{{ request.get_host }}')
 This will redirect to home page

 On Mon, 19 Aug 2019, 3:52 pm RONAK JAIN, 
 wrote:

> Hello Django developers,
>
> I am trying to redirect my registration page on the home page but, I
> am not getting when I am trying with a registration page it will work for
> registration but when I am doing with the home page so I am not getting.
>
> *Home Page : localhost:8000*
>
> *Could you help me out with this problem?*
>
> *Attached screenshots for Better Understanding please check it out.*
>
>
> --
> You received this message because you are subscribed 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%2BAqMUeYs7CALaGOmfFfJ%2BHp%
> 3DWoKMyrjvYcOc8Za3JkTLFY_CQ%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/CAKqY%3DSTmdtAMa9N_zfcjgai_
 3XP7iGuXQgNsyPT2h5EuGCE7KQ%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/CACh0Ehx0QcsmJaU2NoV47WpJDgkSM
>>> -dpX9gkvvffgvD57uqoQA%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/CAGHZBzxwT7a_hPPSQ5XwE%3DaiDZv7nszXZZzcviKskyCHxSQGiQ
>> %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%2BAqMUfr2GkV1bxR9HOWH1Lv5FdknZ
> cbULmAuWXrkCqiZDQS3g%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/CAHLKn72u3TFpjakgZ9GhzEv2DYZtFHLCKCmDwQbGbr%3D0htwfnw%40mail.gmail.com.


Re: views and manager files according to MVT design pattern

2019-08-27 Thread Tosin Ayoola
Instead of splitting your view,  why not create a new app that way the
project will b manageable

On Aug 27, 2019 23:45, "Mike Dewhirst"  wrote:

> On 28/08/2019 4:01 am, Alejandro Cuara wrote:
>
>> Hi,
>> I would like to know if does make sense to split my views.py file into
>> multiple view files
>> trying to have a project better organized and the same for my manager.py
>> file because i noticed that
>> they have grown a lot, from my perspective it make sense to be align
>> better with the MVT design pattern
>> but I would like to know the recommendation from the official
>> documentation or the experts in this matter.
>>
>>
> I'm no expert but I have views in a single file in some apps and in a
> views directory and multiple files in other apps. This happened gradually
> for me as the views.py file grew.
>
> Nowadays, I move to multiple files earlier than before because it suits my
> brain better. And I don't use an IDE but prefer a plain text editor.
>
> It is totally your call in your circumstances.
>
>
> Thanks in advance.
>> --
>> You received this message because you are subscribed 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 > django-users+unsubscr...@googlegroups.com>.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/django-users/ec8fb034-dd09-4de2-a61d-29563a671f55%40googlegroups.com
>> > 9-4de2-a61d-29563a671f55%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/ms
> gid/django-users/ed16b7fa-fba1-db43-04c6-7e8bda6fdeaf%40dewhirst.com.au.
>

-- 
You received this message because you are subscribed 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/CAHLKn70dCfXHxBv0s4nbQDPTxpNQd4bhwDSB-bZrj1e0ZVehsg%40mail.gmail.com.


Re: User Register form not validating or returning errors.

2019-08-27 Thread Tosin Ayoola
You  didn't close the form tag that why you getting this error

On Aug 27, 2019 21:41, "K. KOFFI"  wrote:

> please put « > » before the csrf tag
>
>
> Le 27 août 2019 à 16:30 +0100, Kean , a écrit :
>
> Hi Ajeet, thanks for code,
> however after i press submit i get the
>
> Forbidden (403)
> CSRF verification failed. Request aborted.
> Help
> Reason given for failure:
>
> CSRF token missing or incorrect.
>
>
> In general, this can occur when there is a genuine Cross Site Request
> Forgery, or when Django's CSRF mechanism
>  has not been used
> correctly. For POST forms, you need to ensure:
>
>- Your browser is accepting cookies.
>- The view function passes a request to the template's render
>
> 
> method.
>- In the template, there is a {% csrf_token %} template tag inside
>each POST form that targets an internal URL.
>- If you are not using CsrfViewMiddleware, then you must use
>csrf_protect on any views that use the csrf_token template tag, as
>well as those that accept the POST data.
>- The form has a valid CSRF token. After logging in in another browser
>tab or hitting the back button after a login, you may need to reload the
>page with the form, because the token is rotated after a login.
>
> You're seeing the help section of this page because you have DEBUG = True in
> your Django settings file. Change that to False, and only the initial
> error message will be displayed.
> You can customize this page using the CSRF_FAILURE_VIEW setting.
>
> my template is referencing csrf_token
>
> template.html
>
> 
> 
> 
> Customer
> 
> 
>  "Customer register" 
> 
> 
> 
> {% csrf_token %}
> {{ form.as_p }}
> 
> 
> 
> 
> 
> 
>
>
> Am i doing something wrong?
>
> Best,
> K
>
> On 25 Aug 2019, at 08:57, Ajeet Kumar Gupt 
> wrote:
>
> Hi,
>
> Please use the below code.
>
> views.py
> __
>
> def user_register(request):
> # if this is a POST request we need to process the form data
> template = 'mymodule/register.html'
># template = 'index.html'
> if request.method == 'POST':
> # create a form instance and populate it with data from the request:
> form = RegisterForm(request.POST)
> # check whether it's valid:
> if form.is_valid():
> if 
> User.objects.filter(username=form.cleaned_data['username']).exists():
> return render(request, template, {
> 'form': form,
> 'error_message': 'Username already exists.'
> })
> elif 
> User.objects.filter(email=form.cleaned_data['email']).exists():
> return render(request, template, {
> 'form': form,
> 'error_message': 'Email already exists.'
> })
> elif form.cleaned_data['password'] != 
> form.cleaned_data['password_repeat']:
> return render(request, template, {
> 'form': form,
> 'error_message': 'Passwords do not match.'
> })
> else:
> # Create the user:
> user = User.objects.create_user(
> form.cleaned_data['username'],
> form.cleaned_data['email'],
> form.cleaned_data['password']
> )
> user.first_name = form.cleaned_data['first_name']
> user.last_name = form.cleaned_data['last_name']
> user.phone_number = form.cleaned_data['phone_number']
> user.save()
> return redirect('/login/')
> # Login the user
> #login(request, user)
> #def user_login(request):
> # redirect to accounts page:
> #return render(request, '/login.html')
># return HttpResponseRedirect(return, '/login.html')
># No post data availabe, let's just show the page.
> else:
> form = RegisterForm()
> return render(request, template, {'form': form})
>
>
> On Sat, Aug 24, 2019 at 8:34 PM Kean  wrote:
>
>> Hi,
>>
>> New to Django.
>> I've created a user registration form, the issue is it does not run
>> validations or report errors with the data entered. It simply routes to the
>> redirect url.
>> Please can I ensure the user sees the correct error in a post case
>> scenari for both a django form, and customsied django form.
>>
>> forms.py
>>
>> class UserRegisterForm(UserCreationForm):
>> email = forms.EmailField()
>>
>> class Meta:
>> model = User
>> fields = 'username', 'email', 'password1', 'password2'
>>
>> Views.py
>>
>> def register(request):
>> if request.method == 'POST':
>> form = UserRegisterForm(request.POST)
>> if form.is_valid():
>>  

Re: Hi, I'm new django. I want to learn Django. What's the first step.

2019-09-01 Thread Tosin Ayoola
Read 2 scoop of django,  alongside django two with example, have your
django documentation handy u will need it & I also have django tutorial
series,  I'm started yesterday,  with all that u will b good to go

On Sep 1, 2019 14:37, "Jorge Luis Callalle Torres" 
wrote:

> Hi, I'm new django. I want to learn Django.  What's the first step
> What advice you could give me.
> Any course, resources, or books
>
> thanks a lot friends
>
> --
> *Jorge Luis Callalle Torres*
> 5359480 / 934835047
>
>
>
> --
> You received this message because you are subscribed 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/CALps_2HgbSwAWo7fwFoLJ7tbz4poCtqOkKs
> 3jQLMj1gQ97Wf%3Dg%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/CAHLKn73zVcNLFr4SVHQ-s_gz_b-jAmaLx7vvrXrgzZBb1E8DEw%40mail.gmail.com.


Re: Please someone should help me fix this

2019-09-02 Thread Tosin Ayoola
Can u send d screenshot of the error message you getting

On Sep 2, 2019 00:04, "Sullivan Nnaji"  wrote:

> I have activated the virtual environment and CD into the project name and
> manage.py was present but still can't run server
> I always get an error of
> File "manage.py", line 16
>   From exc
>
> SyntaxError: invalid syntax
>
> --
> You received this message because you are subscribed 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/01202497-70c2-41a7-9838-52729bfbfb1a%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/CAHLKn72L%2BSmCb08ovAcL_BW%3Dkonp4oCTi_%3DW4Y8KVLQh5DSH4Q%40mail.gmail.com.


Re: MultipleObjectsReturned: get() returned more than one Site -- it returned 2!

2019-09-05 Thread Tosin Ayoola
A screenshot will do a lot of help,  this is really terrible I can't read
or interpret it & u not saying Wat u intend on archiving

On Sep 5, 2019 23:02, "gh"  wrote:

> Traceback (most recent call last):
>File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-
> packages/django/core/handlers/base.py", line 108, in get_response
>response = middleware_method(request)
>File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-
> packages/django/contrib/sites/middleware.py", line 10, in process_request
>request.site = get_current_site(request)
> File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-
> packages/django/contrib/sites/shortcuts.py", line 15, in get_current_site
> return Site.objects.get_current(request)
> File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-
> packages/django_sites_extensions/models.py", line 40, in
> patched_get_current
>  return self._get_site_by_request(request)  # pylint:
> disable=protected-access
> File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-
> packages/django_sites_extensions/models.py", line 92, in
> patched_get_site_by_request
>site = self.get(domain__iexact=host)
> File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-
> packages/django/db/models/manager.py", line 127, in manager_method
> return getattr(self.get_queryset(), name)(*args, **kwargs)
> File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-
> packages/django/db/models/query.py", line 338, in get
> (self.model._meta.object_name, num)
> MultipleObjectsReturned: get() returned more than one Site -- it
> returned 2!
>
> --
> You received this message because you are subscribed 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/1b8f2de7-9f94-4a64-aeb1-748ffb333a8a%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/CAHLKn722PP5nrgDiJGnRFTwArjRD3N4SPuL-o1Ec5jTXf0MsNw%40mail.gmail.com.


Re: How to create user registration

2019-09-06 Thread Tosin Ayoola
https://simpleisbetterthancomplex.com/tutorial/2017/02/18/how-to-create-user-sign-up-view.html

Here u will get all u need

On Sep 6, 2019 12:43, "VIJAY RAJA"  wrote:

> How to create user registration forms
>
> --
> You received this message because you are subscribed 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/b3f286a3-cd09-4262-8f14-970989f90353%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/CAHLKn71VEvAf5g4ctKB-xPVVJ6iXN3CqNCiiysb6Y8rymT0Mxw%40mail.gmail.com.


Re: How to create a a drop-down menu from the logged in username

2019-09-09 Thread Tosin Ayoola
I feel bootstrap can handle that

On Sep 9, 2019 09:28, "Sandip Nath"  wrote:

> Am new to Django. Am trying to build a car rental web site. After logging
> in the home page navbar at the top is showing the "hello " as
> expected. But I want a drop-down menu from that welcome message which will
> contain the user edit profile option, his/her bookings and a logout
> options. I have created edit profile and logout features but they are
> separately shown. How can I bring them under the drop-down menu in the
> "hello  welcome message?
> Please give a detailed explanation.
>
> --
> You received this message because you are subscribed 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/1a839db3-af01-401b-8f76-a487da4843c8%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/CAHLKn72wS0mYNuqAugvD1miA%3D7WhEJy7EPqROohwA-qgRw%3D2qg%40mail.gmail.com.


Postman-django Api help

2019-09-12 Thread Tosin Ayoola
Halo
Good day sorry I wan work on a airline tickets reservations project using
postman Api, but I've never used that before and can't seem to find  any
resourceful material online, can anyone be kind enough to help me out.
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/CAHLKn70VJMTiSRXWke%3DYW9TJ6Z_R5an9vBb3TpPmndbdOMh24A%40mail.gmail.com.


Query help

2019-09-12 Thread Tosin Ayoola
Halo guyz I actually need a little help, I'm working on a airline tickets
reservations project using postman Api that requires making query for
available flight going to a particular destination,  from a particular
city, arrival date & departure  date & I got no idea on how to write the
query,  Pls can anyone help out 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/CAHLKn70jgSAAHL9YtX5Y6-9BWNdx42i0-0LnVt%3DQCPB-Bgjwow%40mail.gmail.com.


Re: Postman-django Api help

2019-09-13 Thread Tosin Ayoola
Yes @ babtunde I'm referring to  postman Api

On Sep 13, 2019 14:50, "Babatunde Akinyanmi"  wrote:

> Are you talking of this postman api?
> https://docs.api.getpostman.com/?version=latest
>
> On Thu, 12 Sep 2019, 14:31 Tosin Ayoola,  wrote:
>
>> Halo
>> Good day sorry I wan work on a airline tickets reservations project using
>> postman Api, but I've never used that before and can't seem to find  any
>> resourceful material online, can anyone be kind enough to help me out.
>> 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/CAHLKn70VJMTiSRXWke%3DYW9TJ6Z_R5an9vBb3TpPmndbdOMh24A%
>> 40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHLKn70VJMTiSRXWke%3DYW9TJ6Z_R5an9vBb3TpPmndbdOMh24A%40mail.gmail.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/CA%2BWjgXN5V3o%2BEVSeC0vr9ZNA3E37xGut_
> hnw9pPBBRjif_Vmdg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BWjgXN5V3o%2BEVSeC0vr9ZNA3E37xGut_hnw9pPBBRjif_Vmdg%40mail.gmail.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/CAHLKn730yN1su9qTyGhJGU2ZDrpyaPeWheg_mk1KJpoVxwsi4A%40mail.gmail.com.


Re: Raju | ITC Infotech - Looking for Backend Developers (Python/Django ORM - New York City )

2019-09-18 Thread Tosin Ayoola
Can I apply as remote django developer?

On Sep 17, 2019 21:35, "Raju N Somanna"  wrote:

> Hi All
>
> I've an immediate need for Backend Developers (*Python/Django ORM* - New
> York City) with my client in NYC. As the title suggests my team is looking
> for Python/Django specialist, someone who is good experience on ORM.
>
> Please do let me know if you have any from your contacts/references who
> might be interested in this opportunity.
>
> *PS: ABOUT US*
> ITC Infotech is a Global IT Consulting Organization with $200 mil+ in
> revenues, 8000+ resources footprint across Americas, Europe, South Africa,
> Asia Pacific and India.
> Presence in the US from the past 17 years, with resources working in over
> 24 states. Our US innovation labs are in San Jose, CA and we also have
> offices in NJ, MI, AR.
> We have plenty of successful use cases across diversified verticals
> including: Banking & Financial Services, Healthcare, Mfg, CPG-Retail,
> Hi-Tech.
> Our technology footprint encompasses: IoT, ML, AI, AR, RPA, Blockchain,
> Big Data, Product Engineering (we own a technology agnostic DevOps
> product), App Dev, Infra, PTC - PLM, ERP, BI, DW, Data Science…
> We are backed by a parent company with over $50 billion market cap and
> over 26,000 employees world-wide.
>
> Regards
> Raju NS
>  raju...@itcinfotech.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/4a35e21e-fef7-46b9-bdc5-72767c3e3196%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/CAHLKn73pR7kAjYQ8moCeMTsUTm%2Bn%2BD0T37_-divH5fXgy1HGSg%40mail.gmail.com.


Re: Image not loading

2019-09-19 Thread Tosin Ayoola
I don't know if I'm write on but u're not referencing the source of the
image wit the arc attribute,  but rather u using the style attribute

On Sep 19, 2019 16:11, "Joseph Emeka"  wrote:

> Thanks for you reply I do not really understand it. i bought the template
> to use the layout for a project, using django framework. the css, js and
> other files ares was written by the designer. Secondly i have run necessary
> terminal command to collect assets and setting for for static files. find
> attached the template head
>
> On Thursday, September 19, 2019 at 3:32:14 PM UTC+1, King Strips wrote:
>>
>> 
>>
>> On Thu, Sep 19, 2019 at 2:20 PM Joseph Emeka  wrote:
>>
>>> The highlighted section of the code is not loading the image was the
>>> solution
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/django-users/c00e4b4c-f270-4180-b072-951a92283882%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/63e40e60-7273-4897-995b-067a229e686a%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/CAHLKn72pR0ruydA8YPrjhCxV3jFHnosT5VFSAEGFFgefsumZAA%40mail.gmail.com.


Re: Image not loading

2019-09-20 Thread Tosin Ayoola
The remaining on template are the working perfectly,  a better way to
troubleshoot this is to use your browser developer tools(network, console)
➕  have u tried img src="static file path"  instead of img style="..."

On Sep 20, 2019 09:23, "Joseph Emeka"  wrote:

> How do i reference the the source correctly?
>
> On Thursday, September 19, 2019 at 4:20:58 PM UTC+1, Tosin Ayoola wrote:
>>
>> I don't know if I'm write on but u're not referencing the source of the
>> image wit the arc attribute,  but rather u using the style attribute
>>
>> On Sep 19, 2019 16:11, "Joseph Emeka"  wrote:
>>
>>> Thanks for you reply I do not really understand it. i bought the
>>> template to use the layout for a project, using django framework. the css,
>>> js and other files ares was written by the designer. Secondly i have run
>>> necessary terminal command to collect assets and setting for for static
>>> files. find attached the template head
>>>
>>> On Thursday, September 19, 2019 at 3:32:14 PM UTC+1, King Strips wrote:
>>>>
>>>> 
>>>>
>>>> On Thu, Sep 19, 2019 at 2:20 PM Joseph Emeka 
>>>> wrote:
>>>>
>>>>> The highlighted section of the code is not loading the image was the
>>>>> solution
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Django users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to django...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/c00e4b4c-f270
>>>>> -4180-b072-951a92283882%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/c00e4b4c-f270-4180-b072-951a92283882%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...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/django-users/63e40e60-7273-4897-995b-067a229e686a%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/63e40e60-7273-4897-995b-067a229e686a%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/f82ebe60-053e-4f08-aba0-cd420efe4b09%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/f82ebe60-053e-4f08-aba0-cd420efe4b09%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/CAHLKn71m01c%2B4D%2BH5C0TPV736XJO%2B%3D%2BY9JzdxYtzY385MWDT8w%40mail.gmail.com.


Re: TemplateDoesNotExist

2019-09-23 Thread Tosin Ayoola
Can you paste the section of your view code & Hw are you referencing your
base.html is it directly in ur templates folder?

On Sep 23, 2019 13:40, "yerri swamy"  wrote:

Hi guys,

By using templates folder i am not getting what i am expecting and
i am getting error 'Template Does Not Exist' ,and also defaulty it's not
coming templates variable in settings.py file,How do i slove this error
please explain me any one.

-- 
You received this message because you are subscribed 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/208e411a-a8f5-4238-b846-f086826f2ff4%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/CAHLKn72RA0QThHM0GLNuPAdm9r46fKExeFsgSKy5sj%2Bk_btHVw%40mail.gmail.com.


Re: Virtual Environment error

2019-09-25 Thread Tosin Ayoola
CD  into the directory in which u created ur virtualenv the  type source ➕
tab key twice it should give you the list of all the virtual environment u
have created in that directory

On Sep 25, 2019 04:13, "yasar arafath Kajamydeen" 
wrote:

Dear All,

Actually i forget my virtual environment name. So when i run  --  python
manage.py  runserver   command its showing   error like this  .


ImportError: Couldn't import Django. Are you sure it's installed and
available on your PYTHONPATH environment variable? Did you forget to
activate a virtual environment?




Thanks in Advance.


Regards,
Yasar Arafath K

-- 
You received this message because you are subscribed 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/198d3480-4f3b-4cf3-971d-ce6c7ec19080%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/CAHLKn73FXOkSHmc7hWA-dhW%2BGVpJ7eKfr5Os2Ewq7FjMyDQ_BQ%40mail.gmail.com.


Re: Looking for online shop project

2019-09-25 Thread Tosin Ayoola
Halo I do

On Sep 25, 2019 11:52, "Ram mohan"  wrote:

> Hi everyone,
>
>
> I am looking for online shop shop app if anyone has please share the code.
>
>
> Thanks in advance
> RamamohanReddy
>
> --
> You received this message because you are subscribed 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/CAERvz%2BhC%2Bwr8R7ZTsDe%3DtEAVwPaWq5YyZFMURf4ZRV__
> HWnNCw%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/CAHLKn71MSXQrEY2eDkv4w%3DB%2BBR5BoHnV%2BBQ6NLU5jUqH-Z0aBw%40mail.gmail.com.


Re: Looking for online shop project

2019-09-29 Thread Tosin Ayoola
I e a project similar to an e-commerce project for

On Sep 26, 2019 08:01, "Ram mohan"  wrote:

> Hi,
> if any one do this shopapp please let me know or otherwise any source code
> regarding this shopapp please send to me
>
> Thanks&Regard,
> Ramamohan
>
> On Wed, Sep 25, 2019 at 6:46 PM Tosin Ayoola 
> wrote:
>
>> Halo I do
>>
>> On Sep 25, 2019 11:52, "Ram mohan"  wrote:
>>
>>> Hi everyone,
>>>
>>>
>>> I am looking for online shop shop app if anyone has please share the
>>> code.
>>>
>>>
>>> Thanks in advance
>>> RamamohanReddy
>>>
>>> --
>>> You received this message because you are subscribed 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/CAERvz%2BhC%2Bwr8R7ZTsDe%3DtEAVwPaWq5YyZFMURf4ZRV__
>>> HWnNCw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAERvz%2BhC%2Bwr8R7ZTsDe%3DtEAVwPaWq5YyZFMURf4ZRV__HWnNCw%40mail.gmail.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/CAHLKn71MSXQrEY2eDkv4w%3DB%2BBR5BoHnV%2BBQ6NLU5jUqH-
>> Z0aBw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHLKn71MSXQrEY2eDkv4w%3DB%2BBR5BoHnV%2BBQ6NLU5jUqH-Z0aBw%40mail.gmail.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/CAERvz%2BhXgUdEigc_Jc9fh2OL6LR7Et_%
> 3DScEbPN0CjXAuhxuzLA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAERvz%2BhXgUdEigc_Jc9fh2OL6LR7Et_%3DScEbPN0CjXAuhxuzLA%40mail.gmail.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/CAHLKn71mdUEZveyPVaEUUGdHL6fkQ5WFFNrWAXccaOLvbzunUA%40mail.gmail.com.


Re: Weekly Report builder

2019-09-30 Thread Tosin Ayoola
I've Neva done anything like that but I feel to achieve that u will need
something like an activity log table with the list of activities you wish
to kip track of or display,  use a oneToOne field to link each user to that
activity log table,  then from there you can display what you wish to
display that one approach I feel you can use to achieve what you want

On Sep 30, 2019 05:19, "Ankita Gupta"  wrote:

> I have a blog project, where users posts daily posts. I want to see
> activity of users like weekly report or monthly report..  just like in
> github we have which shows activity of users over time. How can I achieve
> this? Any guidance is appreciable.
>
> --
> You received this message because you are subscribed 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/f28b98d3-f66d-4a25-9b3a-ba96e87c74b9%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/CAHLKn73z%2BEVQHJJLe%3DZfOshstv6MWdBvDi7YaPBM%3D_GcGSgJ0g%40mail.gmail.com.


Re: TemplateDoesNotExist

2019-10-03 Thread Tosin Ayoola
Did you set your template folder correctly in your setting file and in your
view are you pointing to the right directory where your .html is located?

On Oct 3, 2019 08:18, "yerri swamy"  wrote:

I tried like this
testapp>template>base.html
but also its showing same issue please help me anyone..
views.py

   1.

   from django.shortcuts import render

   2.
   3.

   # Create your views here.

   4.

   def hello_world(request):

   5.



   1.

return render(request,'testapp/template/base.html',{})



On Wed, Sep 25, 2019 at 11:34 AM Desh Deepak 
wrote:

> Create template folder inside testapp.
>
> Like this:
> testapp>template>base.html
>
>
>
> On Wed, 25 Sep 2019, 10:47 yerri swamy,  wrote:
>
>>
>>
>> On Mon, Sep 23, 2019 at 6:53 PM Desh Deepak 
>> wrote:
>>
>>> Show me your views.py file.
>>>
>>> On Mon, 23 Sep 2019, 18:48 Abu Yusuf, 
>>> wrote:
>>>
 1. ensure you have a folder templates inside static folder
 2. ensure you filled up templates_dir: 'templates'
 3. ensure 'base.html' exists inside templates folder

 On Mon, Sep 23, 2019 at 6:40 PM yerri swamy 
 wrote:

> Hi guys,
>
> By using templates folder i am not getting what i am expecting
> and i am getting error 'Template Does Not Exist' ,and also defaulty it's
> not coming templates variable in settings.py file,How do i slove this 
> error
> please explain me any one.
>
> --
> You received this message because you are subscribed 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/208e411a-a8f5-4238-b846-f086826f2ff4%
> 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/CACNsr29mvap_G4%2Bc70NrkDZEQvPye%
 3D22caxfBvdUvMt_b7kXqQ%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/CAJ0m4xiPWfJ%3Dt-CjkDL81F7wn5ETmcBRacMyBi5n0zpO
>>> 0C%3DUQg%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/CAKMSwL-OH3MOgjE5YDwVtsH-2xPv5oNxvuWHna8MZYUXS0iR0A%
>> 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/CAJ0m4xhvoPjpgJXQKk61oG4rfnVRnUwLCX1CgYH%3DGdze8BGAfw%
> 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/CAKMSwL-WqaCjmAvqX23kcWT%2BrCv6b25PjQxq-9AKjPkYNOVm2g%
40mail.gmail.com

.

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

Re: getting error when i changed database sqllite3 to mysql

2019-10-07 Thread Tosin Ayoola
Hello in your settings.py files,  you still have,  sqlite3 as your db
engine instead of MySQL so probably try changing that then see if it's
works

On Oct 5, 2019 22:35, "Gulsher Khan"  wrote:

> I trying to change default database(sqllite) which is given by the Django.
> I want to use mysql database. I put lots of effort but nothing went well. I
> successfully has been install mysql, mysqlclient, mysql-connector whatever
> i have read in the documentation.
>
> I'm using OS: Ubuntu 19.04
>
> --
> You received this message because you are subscribed 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/ea48f010-5ea5-4d58-9033-2e83a3e1de06%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/CAHLKn70W2n%3D71rsdMdpsmLobh5Jjkfdu0wObO3vYcXahQN%3D7aw%40mail.gmail.com.


Re: to make a wish list .

2019-10-25 Thread Tosin Ayoola
Ohk cool I've done something similar to this,  but mine is a to-do list,
 so the way I did my is I used a model and a Modelform the form ask the
user to enter the lists and details of goals they want to achieve in a day,
 then, in the view.py I check if the information entered is valid and
cleaned data,  if it is I proceeded to saving it to the db, in the
index.html file I use a for loop to display all the title in the db,  and
when a particular title is selected,  it displays the details for that
title ..  I feel if you do something similar to that you'll achieve
your aim

On Oct 25, 2019 12:55, "Shubham Mishra"  wrote:

> hello,
> I am Surendra Mishra , I am student currently i'm learning django.
> I applied for internship , but they gave me a task if i complete then they
> will consider me .
> please help me to complete this task.
>
> mostly i have done but in the last section im fighting but i not getting
> exact thing .
> i have some item and in under i have wishlist button . my requirement
> is when i click  the wishlist button for the particular item that item must
> be added in the wishlist page .
>
> so what is the logic and what is the template page for that .
>
>
>
>
> --
> You received this message because you are subscribed 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/a4f2d8d4-a6f4-45ea-8022-538e91f1b124%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/CAHLKn73T5sFFDh9p54V8WrNVNs4oUfb-H7-S-HX1pYW%2B6%3Dw%2BHw%40mail.gmail.com.


Re: to make a wish list .

2019-10-25 Thread Tosin Ayoola
I could share u the link to the github repo for the project if you need it

On Oct 25, 2019 5:14 PM, "Tosin Ayoola"  wrote:

> Ohk cool I've done something similar to this,  but mine is a to-do list,
>  so the way I did my is I used a model and a Modelform the form ask the
> user to enter the lists and details of goals they want to achieve in a day,
>  then, in the view.py I check if the information entered is valid and
> cleaned data,  if it is I proceeded to saving it to the db, in the
> index.html file I use a for loop to display all the title in the db,  and
> when a particular title is selected,  it displays the details for that
> title ..  I feel if you do something similar to that you'll achieve
> your aim
>
> On Oct 25, 2019 12:55, "Shubham Mishra" 
> wrote:
>
>> hello,
>> I am Surendra Mishra , I am student currently i'm learning django.
>> I applied for internship , but they gave me a task if i complete then
>> they will consider me .
>> please help me to complete this task.
>>
>> mostly i have done but in the last section im fighting but i not getting
>> exact thing .
>> i have some item and in under i have wishlist button . my requirement
>> is when i click  the wishlist button for the particular item that item must
>> be added in the wishlist page .
>>
>> so what is the logic and what is the template page for that .
>>
>>
>>
>>
>> --
>> You received this message because you are subscribed 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/ms
>> gid/django-users/a4f2d8d4-a6f4-45ea-8022-538e91f1b124%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/a4f2d8d4-a6f4-45ea-8022-538e91f1b124%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/CAHLKn73KjBr_UMLreH_ptaEPOVUTZrFLHWx7%2BFR430Cp-MEaVQ%40mail.gmail.com.


Request

2019-11-16 Thread Tosin Ayoola
Hey guy, need a little help on developing a school management system
project, can I get a github repo link,  to get little 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/CAHLKn72828L84ELxosumJ2UxcujJrNmwfbe-wNJkroN_uZiR%2Bg%40mail.gmail.com.


Help

2019-11-24 Thread Tosin Ayoola
Halo guyz,  working on a school management system,  and I created a view
that filter & display the assignment given to a particular class,  but
instead I'm getting a "assignment_form has no attributes cleaned_data"
error message what am I doing wrong, can anyone help out below is d 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/CAHLKn73k%3DUKJ0prRjpGhnxazUdsJXDAuNdqAJZLgdDsLy43eew%40mail.gmail.com.


Re: Help

2019-11-24 Thread Tosin Ayoola
If I remove the .cleaned_data so how do I include the parameter for the
filter?

On Nov 24, 2019 16:05, "Paras Jain"  wrote:

> remove from .cleaned data part
>
> On Sun, Nov 24, 2019 at 8:03 PM Tosin Ayoola 
> wrote:
>
>> Halo guyz,  working on a school management system,  and I created a view
>> that filter & display the assignment given to a particular class,  but
>> instead I'm getting a "assignment_form has no attributes cleaned_data"
>> error message what am I doing wrong, can anyone help out below is d 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/CAHLKn73k%3DUKJ0prRjpGhnxazUdsJXDAuNdqAJ
>> ZLgdDsLy43eew%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHLKn73k%3DUKJ0prRjpGhnxazUdsJXDAuNdqAJZLgdDsLy43eew%40mail.gmail.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/CAMtmBS8F59pre87v9OMg6b2RCn3mh
> L_4SoC17oqRnQwE%3Dx%3DePg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAMtmBS8F59pre87v9OMg6b2RCn3mhL_4SoC17oqRnQwE%3Dx%3DePg%40mail.gmail.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/CAHLKn72KdtBeR59XDZNxZoLX810Ehmvz_eCUpfMB0a1PBv7REQ%40mail.gmail.com.


Re: good day guys

2019-12-04 Thread Tosin Ayoola
buenos días, gracias, sí, tengo un súper usuario creado, pero no puedo
ejecutar ningún comando que use manage.py
Gracias


On Thu, Dec 5, 2019 at 1:49 AM jose angel encinas ramos <
encinasj.an...@gmail.com> wrote:

> Buenas tardes, ya creaste un super usuario en django?,
> creo que te hace falta correr python manage.py makemigrations
> despues python manage.py migrate
>
> intenta eso
>
> El mié., 4 dic. 2019 a las 17:10, Tosin Ayoola ()
> escribió:
>
>> halo guys, i'm working on a school management system that has multi user
>> (student and staffs), i've created the model, views and form but i'm
>> getting this error which i'm not familiar with. i'll b glad if anyone can
>> help out
>> below is the view, model, form and the err
>>
>> #forms
>> class StudentSignupForm(UserCreationForm):
>> class Meta(UserCreationForm.Meta):
>> model = UserRole
>> @transaction.atomic
>> def save(self):
>> user = super().save(commit=False)
>> user.is_student = True
>> if commit:
>> user.save()
>> return user
>>
>> class StaffSignupForm(UserCreationForm):
>> class Meta(UserCreationForm.Meta):
>> model = UserRole
>> @transaction.atomic
>> def save(self):
>> user = super().save(commit=False)
>> user.is_staff = True
>> if commit:
>> user.save()
>> return user
>>
>>
>> #views
>> class StudentSignUp(CreateView):
>> model = UserRole
>> form_class = StudentSignupForm
>> template_name = 'register/signup.html'
>>
>> def get_context_data(self, **kwargs):
>> kwargs['user_type'] = 'student'
>> return super().get_context_data(**kwargs)
>> def student_valid_form(self, student_form):
>> user = student_form.save()
>> login(self.request, user)
>> return redirect('students:student_index')
>>
>> class StaffSignup(CreateView):
>> model = UserRole
>> form_class = StaffSignupForm
>> template_name = 'register/signup.html'
>>
>> def get_context_data(self, **kwargs):
>> kwargs['user_type'] = 'staff'
>> return super().get_context_data(**kwargs)
>> def staff_valid_form(self, staff_form):
>> user = staff_form.save()
>> login(self.request, user)
>> return redirect('staff:staff_index')
>>
>>
>>
>>
>> #models
>>
>> class UserRole(AbstractUser):
>> is_student = models.BooleanField(default=False)
>> is_staff = models.BooleanField(default=False)
>>
>> --
>> You received this message because you are subscribed 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/CAHLKn71OveFEozZ7J7b%3DGMBgtB7LvurcoOgbDEiTQXX%3DO%3D9zTw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHLKn71OveFEozZ7J7b%3DGMBgtB7LvurcoOgbDEiTQXX%3DO%3D9zTw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> José Ángel Encinas
> Ing. Tecnologias de la informacion
>
>
> Cel:  6622267620  <6622267620>
>
>*   Never give up...*
> <http://mx.linkedin.com/in/jencinas> <http://twitter.com/encinasjangel>
>
> --
> You received this message because you are subscribed 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/CAF3iVr9wFwnFA8OqUJKJWvApxXydDAKc0LVoL32o_LTBtaqTOQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAF3iVr9wFwnFA8OqUJKJWvApxXydDAKc0LVoL32o_LTBtaqTOQ%40mail.gmail.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/CAHLKn73Bt%2BfX6%3DDL0ggcJtFFxNjzieo%2Biux_8XCj%2B0uVzJtkRw%40mail.gmail.com.


Re: good day guys

2019-12-05 Thread Tosin Ayoola
thanks it worked

On Fri, Dec 6, 2019 at 4:01 AM Jorge Gimeno  wrote:

> By chance did you set AUTH_USER_MODEL in settings.py?  That's a
> requirement if you're using a custom user model (I guessed that because
> your UserRole inherits from AbstractUser). There's a good tutorial on
> writing a custom user model here:
> https://wsvincent.com/django-custom-user-model-tutorial/
>
> -Jorge
>
> On Wed, Dec 4, 2019 at 4:58 PM Tosin Ayoola 
> wrote:
>
>> buenos días, gracias, sí, tengo un súper usuario creado, pero no puedo 
>> ejecutar ningún comando que use manage.py
>> Gracias
>>
>>
>> On Thu, Dec 5, 2019 at 1:49 AM jose angel encinas ramos <
>> encinasj.an...@gmail.com> wrote:
>>
>>> Buenas tardes, ya creaste un super usuario en django?,
>>> creo que te hace falta correr python manage.py makemigrations
>>> despues python manage.py migrate
>>>
>>> intenta eso
>>>
>>> El mié., 4 dic. 2019 a las 17:10, Tosin Ayoola ()
>>> escribió:
>>>
>>>> halo guys, i'm working on a school management system that has multi
>>>> user (student and staffs), i've created the model, views and form but i'm
>>>> getting this error which i'm not familiar with. i'll b glad if anyone can
>>>> help out
>>>> below is the view, model, form and the err
>>>>
>>>> #forms
>>>> class StudentSignupForm(UserCreationForm):
>>>> class Meta(UserCreationForm.Meta):
>>>> model = UserRole
>>>> @transaction.atomic
>>>> def save(self):
>>>> user = super().save(commit=False)
>>>> user.is_student = True
>>>> if commit:
>>>> user.save()
>>>> return user
>>>>
>>>> class StaffSignupForm(UserCreationForm):
>>>> class Meta(UserCreationForm.Meta):
>>>> model = UserRole
>>>> @transaction.atomic
>>>> def save(self):
>>>> user = super().save(commit=False)
>>>> user.is_staff = True
>>>> if commit:
>>>> user.save()
>>>> return user
>>>>
>>>>
>>>> #views
>>>> class StudentSignUp(CreateView):
>>>> model = UserRole
>>>> form_class = StudentSignupForm
>>>> template_name = 'register/signup.html'
>>>>
>>>> def get_context_data(self, **kwargs):
>>>> kwargs['user_type'] = 'student'
>>>> return super().get_context_data(**kwargs)
>>>> def student_valid_form(self, student_form):
>>>> user = student_form.save()
>>>> login(self.request, user)
>>>> return redirect('students:student_index')
>>>>
>>>> class StaffSignup(CreateView):
>>>> model = UserRole
>>>> form_class = StaffSignupForm
>>>> template_name = 'register/signup.html'
>>>>
>>>> def get_context_data(self, **kwargs):
>>>> kwargs['user_type'] = 'staff'
>>>> return super().get_context_data(**kwargs)
>>>> def staff_valid_form(self, staff_form):
>>>> user = staff_form.save()
>>>> login(self.request, user)
>>>> return redirect('staff:staff_index')
>>>>
>>>>
>>>>
>>>>
>>>> #models
>>>>
>>>> class UserRole(AbstractUser):
>>>> is_student = models.BooleanField(default=False)
>>>> is_staff = models.BooleanField(default=False)
>>>>
>>>> --
>>>> You received this message because you are subscribed 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/CAHLKn71OveFEozZ7J7b%3DGMBgtB7LvurcoOgbDEiTQXX%3DO%3D9zTw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAHLKn71OveFEozZ7J7b%3DGMBgtB7LvurcoOgbDEiTQXX%3DO%3D9zTw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>> José Ángel Encinas
>>> Ing. Tecnologias de la informacion
>>>
>>>
>>> Cel:  6622267620  <6622267620>
>>>
>>>*   Never give up...*
>>> <http://mx.linkedin.com/in/jencinas>

Postman API error

2019-12-17 Thread Tosin Ayoola
Hey guys I built an Api with django,  generally for sign up,  it's meant to
b used for Android app development,  but now when trying to sign up wit
postman,  I kip getting csrf_token error anyone wit clue on how I can fix
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/CAHLKn728QgutpcOvniqfe0BLt6RxqaJi4RnOWdQ82q0XuUNUbA%40mail.gmail.com.


Re: help

2020-01-18 Thread Tosin Ayoola
I'm  using django 3.0 and I'm still getting the same error

On Sat, Jan 18, 2020, 16:15 Kasper Laudrup  wrote:

> Hi Tosin,
>
> On 18/01/2020 16.07, Tosin Ayoola wrote:
> > good day guys i'm working on a dango project that requires having a
> > referral link, i tried using pinax-referrals, but when i install and try
> > to integrate i get the error, can anyone help me? thanks
> >
>
> Which version of Django are you using?
>
> A quick search on the interwebs reveals:
>
> "python_2_unicode_compatible feature has only been added in Django 1.5
> version.":
>
>
> https://stackoverflow.com/questions/20741754/python-2-unicode-compatible-error
>
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4e8bc915-729a-e31f-f1cf-f49f72220034%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn72OqfO%2BZ-stdndpYrp5fhTyJSuTvEL5ZvKkBm27WV5xZg%40mail.gmail.com.


Re: help

2020-01-18 Thread Tosin Ayoola
So is there any app that supposes django3.0

On Sat, Jan 18, 2020, 16:32 Kasper Laudrup  wrote:

> Hi again.
>
> On 18/01/2020 16.22, Tosin Ayoola wrote:
> > I'm  using django 3.0 and I'm still getting the same error
> >
>
> It seems like Django 3.0 isn't supported by django-referrals:
>
>
> https://github.com/pinax/pinax-referrals#supported-django-and-python-versions
>
> That probably explains it.
>
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1c15d34a-ec9a-8420-1362-8363b8786cd2%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn719HcpzTMMWxyjS7rWo9vDCwCF%2Bttjh3u%3DFkiZBbgRxXQ%40mail.gmail.com.


Re: help

2020-01-18 Thread Tosin Ayoola
i'm working on an e-commerce project that will have a referral link which
will be provided to each user after signup, i'm using django3.0 about
reserch i've done that and all i keep getting is pinax-referrals,
anafero(which kinda depends on pinax-refferals) and Heartsim Reflink(which
doesnt really do what i want) and what i wan is to be able to keep track of
each referred user, and when 10 customers that are referred by a single
user make payment for goods purchased, they referrer them get a discount on
his/her next purchase

On Sat, Jan 18, 2020 at 7:04 PM Kasper Laudrup 
wrote:

> Hi Tosin,
>
> On 18/01/2020 16.58, Tosin Ayoola wrote:
> > So is there any app that supposes django3.0
> >
>
> There are plenty of apps that "supposes" Django 3.0, but without any
> information on what you want to achieve it's hard for anyone to help you.
>
> Learn to ask a proper question and do some minimal research on your own
> if you want to improve your chances of getting some useful help.
>
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/cad56262-a581-ef7c-4fa7-bcd27826696f%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn71EtG9vh_rA0MqHD1UMfgnQhBKTcMhPF%3DF58YioFgqBQA%40mail.gmail.com.


remote/onsite job

2020-02-16 Thread Tosin Ayoola
guyz  is there any vacancy available for django developer, as i'm really in
need a a job

-- 
You received this message because you are subscribed 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/CAHLKn72BBLvrHDpiZ8umCEfuKJf83gGL1v-sctf5JUivmro9ew%40mail.gmail.com.