"▶ Local vars".
>
> Collin
>
>
> On Friday, December 5, 2014 8:55:06 AM UTC-5, Danish Ali wrote:
>>
>> If I remove slug code, then everything works fine.
>> And can you tell me how can I expand the variables?
>>
>> Thanks
>>
>> On
tor list. http://forums.mysql.com/list.php?50
>
> You could also try using mysqlclient instead to see if you still have the
> problem. That's django's recommended connector.
> https://pypi.python.org/pypi/mysqlclient
> https://docs.djangoproject.com/en/dev/ref/databases/#mysql-db-a
so is there anyway to create slug automatically other than this ?
On Thu, Dec 4, 2014 at 1:29 AM, donarb <don...@nwlink.com> wrote:
> On Wednesday, December 3, 2014 11:59:42 AM UTC-8, Danish Ali wrote:
>>
>> this is stacktrace when I use: slug = AutoSlugField(populate_from='
this is stacktrace when I use: slug = AutoSlugField(populate_from='name')
in my model
Environment:
Request Method: POST
Request URL: http://127.0.0.1:8000/admin/product/shop/add/
Django Version: 1.7.1
Python Version: 3.4.2
Installed Applications:
('django.contrib.admin',
I also used this method. But I got same error in this method too.
def save(self, *args, **kwargs):
self.slug = slugify(self.name)
super(Shop, self).save(*args, **kwargs)
Please let me know if this is correct or not.
--
You received this message because you are subscribed to the Google
can someone help please ?
On Monday, December 1, 2014 6:35:56 PM UTC+5, Danish Ali wrote:
>
> I am not sure about that.
> is there any other easy way to get autofill slug then :)
>
>
> On Monday, December 1, 2014 6:34:05 PM UTC+5, Jani Tiainen wrote:
>>
>> On
I am not sure about that.
is there any other easy way to get autofill slug then :)
On Monday, December 1, 2014 6:34:05 PM UTC+5, Jani Tiainen wrote:
>
> On Mon, 1 Dec 2014 10:20:24 -0300
> Vijay Khemlani wrote:
>
> > Have you tried following the stacktrace that resulted
error?
>
> Does it fail when trying to strip the contents of the "name" field?
>
> On Mon, Dec 1, 2014 at 10:16 AM, Danish Ali <dan...@jotixtech.com
> > wrote:
>
>> I am using admin to enter data.
>> This is the URL from where I am trying to save recor
I am using admin to enter data.
This is the URL from where I am trying to save
records: http://127.0.0.1:8000/admin/product/shop/add/
On Monday, December 1, 2014 6:15:08 PM UTC+5, Jani Tiainen wrote:
>
> On Mon, 1 Dec 2014 04:12:45 -0800 (PST)
> Danish Ali <dan...@jotixtech
still same error.
On Monday, December 1, 2014 5:36:52 PM UTC+5, WongoBongo wrote:
>
> Comment out the earlier slug field. What happens?
>
> # slug = models.SlugField(null=True, blank=True)
>
> K
>
> On Monday, December 1, 2014 4:12:45 AM UTC-8, Danish Ali wrote:
>>
Hello,
I am getting this error: Error: 'NoneType' object has no attribute 'strip'
I have created a model and I am trying to autofill slug field in it. When I
save the record in database I get this error: Error: 'NoneType' object has
no attribute 'strip'
My model is:
from django.db import
11 matches
Mail list logo