quick question about ModelFormSets, is there any way to ID the fields of the modelformset form with a more useful id than: form-0-cell? Ideally I want to have form-$value so I can easily reference it in JQuery
So I can with django and python make commercial project. Yeap ?
mhaligowski
bluesm: well, instagram and pinterest are using it
gbel joined the channel
Mohsen_Hassani
How can I implement breadcrumbs without template inheritance?
mhaligowski
bradleyayers: what do i do now? pull request?
graingert joined the channel
jaddison joined the channel
b3free joined the channel
bradleyayers
compare is much better :) ill have a look
mhaligowski
thank you
n3storm has left the channel
n3storm joined the channel
mgrouchy joined the channel
n3storm joined the channel
ims_ joined the channel
gsin joined the channel
Milossh joined the channel
bradleyayers
mhaligowski: i'm not familiar with @skipIfCustomUser, why is it necessary?
Cromulent joined the channel
Mohsen_Hassani
I need to name some of my URLs so that I can refer to them by their name; where can I set a name for a URL?
And how can I get the name later?
bradleyayers
mhaligowski: overall looks good
mhaligowski: i made a couple of comments
gsin
hi, how do i ensure that User.objects.create_user(username,password) has username unique, i mean i have a signup form and want to send appropriate response in case username is taken
nigelb joined the channel
do i catch IntegrityError and respond accordingly?
bradleyayers
gsin: well in your signup form, implement a clean method for the username field
and make it check that the username is available
gsin: Django's comes with a registration form iirc, that does this
but i can't for the life of me work out how to get it working
as i said newb question
and i feel like an idiot as it's sample code
bradleyayers
so, you're not actually telling me a specific problem you're having
or are you asking what general approach you should be taking
ben_nicoll
so my question i guess - is what would I need to setup this code so I can select a file in the django admin so it runs this code to then output it into the database
yeah
like where to even start approaching it from
then i'll go read the docs
bradleyayers
so do you want to upload a file, and have that file sent to the http://cloud.ocrsdk.com/, and then put the result into the database?
ben_nicoll
correct
bradleyayers
ben_nicoll: okay, do this:
create a model that has a FileField, and a TextField, the text field will store the ocr output
mgrouchy joined the channel
ben_nicoll
yep
that makes sense
bradleyayers
register that with the admin, so you can create/edit/delete
ben_nicoll
yep
opi joined the channel
bradleyayers
add the example code from abbyy into your project somewhere so that you can import it
ben_nicoll
just as a separate file?
and refer to it?
hive-mind joined the channel
bradleyayers
i think having them separate is a good plan
ben_nicoll
ok
bradleyayers
you maybe need to massage them a bit into what you want
write an admin action that operates on instances of you model, and processes them using the abbyy api
ben_nicoll
good starting point though
gsin
hi, i have a field in the UserProfile model which has unique=True and also a default value for this model which is generated randomly using hmac, i am getting an error that this field is not unique