I need will create two sortable fields in Django admin by values in
Though-Model.
-
My models.py
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from django.db import models
from
I have now code like below and I have message. I try split success_url with
id number and compare it with urls.py
AttributeError at /users/login/
>
> 'int' object has no attribute 'get'
>
>
views.py
class LoginView(FormView):
template_name = 'login_form.html'
model = MysiteUser
I will ask a question easier.
experimentally I found such worked providers of factoryboy:
factory.Faker('name', locale='en') - generate random name
factory.Faker('first_name', locale='en') - generate random first_name
factory.Faker('last_name', locale='en') - generate random last_name
On Fri, Apr 29, 2016 at 12:06:02PM -0700, Dariusz Mysior wrote:
> Sory I thought that You are from Poland like I :)
>
> Hmm I try Your code but there is comment
>
> name 'request' is not defined
It's hard to tell what's wrong without seeing the full traceback that
you get with that error;
Just a related/unrelated sidenote.. I'm also new to Django and I found an
amazing tutorial series on youtube... Just wanted to share it with you:
https://youtu.be/FNQxxpM1yOs?list=PLQVvvaa0QuDeA05ZouE4OzDYLHY-XH-Nd
It's a 12 part series and it really helped me get the ball rolling
On
Looking at FactoryBoy’s documentation, it doesn’t seem you can use these;
for example, slug is never mentioned in the documentation. What exactly do
you want to achieve? Are you sure it’s FactoryBoy you are looking for?
Gergely Polonkai
[image: https://]about.me/gergely.polonkai
I mean the factory.Faker('*name*', locale='en'), and
I found slug, name, first_name, last_name, time, date, url, but I am don`t
found all list in Web and factoryboy`s documentation.
May anyone known?
Thanks.
--
You received this message because you are subscribed to the Google Groups
7 matches
Mail list logo