how ill generate some code in the django admin (like a tracking number)

2009-07-13 Thread Asinox
hi guys, im new with django, but im developing a website ... i hope that somebody help me with this problem: how ill generate some code in the django admin and show this code in input and save in database? the problem is that i need to generate some code (like a tracking number) when the user s

how add email field to user registration?

2009-07-18 Thread Asinox
Hi guys, im new with Django, i want to know how ill add a email field to the registration form from the User model. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

django-registration .missing templates?

2009-07-19 Thread Asinox
Hi guys, im trying to use the django-registration...im new with django, but i was thinking that maybe some templates are missing, like registration, login... i cant found ..but i dont know if i need to create the templates... Some help? Thanks --~--~-~--~~~---~--~

Re: django-registration .missing templates?

2009-07-19 Thread Asinox
ok, ...there no exist's :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to dja

@login_required() dont work

2009-07-23 Thread Asinox
Hi guys, im trying to use the login and logout functions of Django, but my @login_required() dont work, dont redirecto to the login form and show the view where the user need to be logged... VIEW from django.shortcuts import render_to_response, get_object_or_404, Http404 from django.contrib.auth.

html text field ...disabled in form?

2009-07-24 Thread Asinox
hi, guys, how ill make a html text field with attr disabled? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubsc

problem with milliseconds and mysql database

2009-07-24 Thread Asinox
Hi, guy, i have a problem trying to save "datetime" in mysql. the problem is that mysql dont need milliseconds in the datatime field... how ill send datatime in format "2009-12-12 1:25:30" without that python and Django say: Enter a valid date/time in -MM-DD HH:MM[:ss [.uu]] format ??

Re: problem with milliseconds and mysql database

2009-07-25 Thread Asinox
it the solution or what's > giving the error ? > > I've tried your example and it works fine. > > Try to look for answers in django.db.fields.__init__ in DateTimeField class > > Frédéric > > 2009/7/25 Asinox : > > > > > Hi, guy, i have a problem

Getting data from Django ModelForm ?

2009-07-25 Thread Asinox
Hi guys, i have a problem with ModelForm, the problem is that in the user private area there is a Form (ModelForm), but in this Form i have a Select, this select show the parent articles , so the problem is that the Select show all parent articles, from all users How ill just show the parent

'_CheckLogin' object has no attribute 'objects' ??

2009-07-25 Thread Asinox
Hi guys, well.. i dont know what this mean : '_CheckLogin' object has no attribute 'objects' any idea? thanks in my views.py from django.shortcuts import render_to_response, get_object_or_404, Http404 from django.conf.urls.defaults import * from django.template import RequestContext from djang

Re: '_CheckLogin' object has no attribute 'objects' ??

2009-07-25 Thread Asinox
view is "Dpatas", then you attempt to later call > "Dpatas.objects.filter()" as if Dpatas was a model. The _CheckLogin is > coming from your use of the @login_required decorator I would imagine. > > Hopefully that helps, > > Dan > > On Jul 25, 8:16 pm, As

Re: Where are the admin app icons from?

2009-07-25 Thread Asinox
The icons : site-packages\django\contrib\admin\media\img\admin :) On Jul 25, 1:46 pm, Margie wrote: > Thanks Alex - I will check those out.  But if anyone knows where the > admin icons came from, I'd still love to know ... > > Margie > > On Jul 24, 4:01 pm, Alex Gaynor wrote: > > > > > On Fri

Re: user profiles and the admin

2009-07-28 Thread Asinox
im new , but i think that u need this part: class UserProfileAdmin(UserAdmin): inlines = [UserProfileInline] list_display = ('user', 'sex','phone') regards, On Jul 28, 3:01 pm, Chris Curvey wrote: > I'm having a bit of a brain cramp here...I'm trying to add some extra > fields to my

Where is the "Else if"... ?

2009-07-29 Thread Asinox
Hi guy, im looking for the simpley if ...else if but i cant see in the django documentation Thanks :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Django and related_name

2009-07-29 Thread Asinox
Hi guys, first im so sorry with my english, im new with Django, u know ;) I have a problem with a related_name, the tables are fine, but the problem is that in the Select (DropDown) the data display is "bad", in this way: Tarifas_object: Html code: Tarifas object how ill display the correct

how save data into more than one table?

2009-07-29 Thread Asinox
Hi guys, i cant find a example about how ill save data in two or more tables... somebody help me please Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Re: Django and related_name

2009-07-29 Thread Asinox
6:23 PM, Asinox wrote: > > > Hi guys, first im so sorry with my english, im new with Django, u > > know ;) > > > I have a problem with a related_name, the tables are fine, but the > > problem is that in the Select (DropDown) the data display is "bad",

Re: how save data into more than one table?

2009-07-29 Thread Asinox
Well im talking about save a form yes, but in the same moment i want to save x data in another table, for example, i want to generate some "key" while im saving the form data, but i want to save the "key" in another table. Thanks On Jul 29, 8:52 pm, mike wrote: > On

Re: how save data into more than one table?

2009-07-29 Thread Asinox
Thanks a lot Mike, very nice help, you example helpe me with another thing :) good!!! now, when i said "key" (sorry!!) i want to say "some code like an encryption key, and random number, etc". im reading the django help and i cant find any topic about this part (how make query than affect two or

Re: how save data into more than one table?

2009-07-30 Thread Asinox
Thanks, i did it, i dont know if in the best way but im saving data in two tables :) thanks :) On Jul 30, 12:47 am, Asinox wrote: > Thanks a lot Mike, very nice help, you example helpe me with another > thing :) good!!! > > now, when i said "key" (sorry!!) i want to

how encrypt datetime.now with python?

2009-07-30 Thread Asinox
hi guys, i want to encrypt the "datetime.now()" , im try with base64 but base64 need string... how ill encrypt ? Thanks :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: how encrypt datetime.now with python?

2009-07-30 Thread Asinox
Thanks a lot guys :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-user

"join" query in Django?

2009-07-30 Thread Asinox
Hi, guys, how or where is the "join" query in Django? i think that Django dont have "join"..but how ill make join? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: "join" query in Django?

2009-07-30 Thread Asinox
Thanks Malcom for replay, but, is not working for me, i think that is simple just .filter("field1__field2"), but i cant make the join i try with .filter("field1__field2") where the field1 is the PK and the field2 is the FK. here is my query: p = Diligencia.objects.filter(Q(socio=request.user.id)

Django admin panel how add extra function in form processing?

2009-08-04 Thread Asinox
Hi guys, somebody know how ill use a extra function in any form processing in the Django admin?, the problem is that i need to generate a encrypted code in the moment that a form is sendinga and save the code in the database in the user's account panel i did it... but i dont know how ill make

Re: Django admin panel how add extra function in form processing?

2009-08-04 Thread Asinox
Sorry krylatij, im new with django, i will try :) thanks On 4 ago, 11:22, krylatij wrote: > Why do you need admin here? > You can generate it in the save() method of your model. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Im lost with Save function in model and saving data from Form

2009-08-06 Thread Asinox
Hi guys, i need a litter help, i know that if i want a Form from Model i need to use ModelForm, but im lost with something... i have a view that render a Form (ModelFrom) and save this, but now i need to use the funcion SAVE in the Model (for use in the admin)... but im lost... bcz in the view f

python md5

2009-08-06 Thread Asinox
Hi guys, please i need to know why md5 return this: the way that im using: def encriptar(): toEncode = pickle.dumps(datetime.now) encoded = md5.new(toEncode) return encoded Thanks --~--~-~--~~~---~--~~ You received this message because you are su

Re: Im lost with Save function in model and saving data from Form

2009-08-06 Thread Asinox
don't work. i know that im lost with overriding the Save() function, bcz i dont know where exactly ill put this, im reading django doc's a lot, but im lost with this part. Thanks On Aug 6, 2:00 pm, Daniel Roseman wrote: > On Aug 6, 6:38 pm, Asinox wrote: > > > > >

Re: python md5

2009-08-06 Thread Asinox
Thanks Alex Gaynor :) is working :) On Aug 6, 1:57 pm, Alex Gaynor wrote: > On Thu, Aug 6, 2009 at 12:55 PM, Asinox wrote: > > > Hi guys, please i need to know why md5 return this: > > > > > > the way that im using: > > > def encriptar(): >

Re: python md5

2009-08-06 Thread Asinox
Thanks guys :) On Aug 6, 2:32 pm, James Bennett wrote: > On Thu, Aug 6, 2009 at 1:16 PM, Asinox wrote: > > Thanks Alex Gaynor :) is working :) > > It's very important to note that the documentation for this module > would have given you the same information. In general

Pagination in the admin , where is?

2009-08-06 Thread Asinox
Well, i cant find any about it, i want to know if the pagination exist in the admin... i think that "yes"..but .. i cant see any thing about.. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Pagination in the admin , where is?

2009-08-06 Thread Asinox
oh man :) thanks :) so easy :) On Aug 6, 10:55 pm, "Adam V." wrote: > ModelAdmin.list_per_page will let you control how many items appear on > a particular admin > list:http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contri... > > On Aug 6, 7:50 pm, Asin

Admin, two links to different views ?

2009-08-06 Thread Asinox
Hi guys, in django admin the views that show the register's just have a link to "edit", but what happen if a need an extra(S) links to another views? for example: i have view that my show list of registered People, the nick is linking to the Edit page (the normal way of Django), but i need anoth

Re: Admin, two links to different views ?

2009-08-07 Thread Asinox
No body? :( On Aug 7, 2:11 am, Asinox wrote: > Hi guys, in django admin the views that show the register's just have > a link to "edit", but what happen if a need an extra(S) links to > another views? > > for example: > > i have view that my show list of regi

Error deleting user form Admin Panel

2009-08-25 Thread Asinox
Hi guys, i dont know from where is coming this error... but two hours ago all was working fine... but know when i try to delete a user from the Django Admin i got this error: TypeError: coercing to Unicode: need string or buffer, User found Somebody know why? complete error code: TypeError at

Hi, im new with Django

2009-06-11 Thread Asinox
Hi, im Asinox, im a php user , CodeIgniter Framewor user, but i want to test something different to PHP, so why not Python. But i have a litter problem, im using window with WAMP, my python path is : E:\wamp\bin\Python25\, my Django installation is: E:\wamp\bin \Python25\Lib\site-packages\django

New with Python and Django

2009-06-15 Thread Asinox
Hi guy's, im new with Python and Django, well im learning Python using Django... im php user and CodeIgniter Framework, so i want to know something about admin generator... What i need to make a User Panel (user will write article, upload pictures, etc) ? or the samen Admin Generator will help me

Passing request.user to FormWizard?

2010-08-17 Thread Asinox
Hi guy's i want to know how pass request.user to my Form Wizard?, any idea? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: can't get STATICFILES to work (Django dev version)

2011-10-04 Thread Asinox
Check this http://stackoverflow.com/questions/7650893/serving-static-files-on-my-own-server/7651021#7651021 On Oct 4, 4:14 am, Mike Dewhirst wrote: > On 3/10/2011 10:00pm, Gelonida N wrote: > > > On 09/26/2011 10:21 PM, nara wrote: > >> I am having trouble getting STATICFILES to work. I have re