Re: please help me,how to create registration model

2013-02-14 Thread Sergiy Khohlov
all are already done Take a look at the builded form : https://github.com/django/django/blob/master/django/contrib/auth/forms.py Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Feb 15, 2013 at 8:36 AM, Avnesh Shakya wrote: > thanks alot... > tell me about html form, i have create

Re: how to password will come in hidden form in django?

2013-02-14 Thread Jani Tiainen
Hi, You need to specify widget as PasswordInput on a form if you want to show asterisks. Though using 3rd party package is good option - no need to reinvent wheel. 15.2.2013 8:11, Avnesh Shakya kirjoitti: i have created my Userinfo model for registration, but password is showing means it's n

Re: please help me,how to create registration model

2013-02-14 Thread Avnesh Shakya
thanks alot... tell me about html form, i have created a registration.html form. now i want to store these things through its page.. so how can i do? i m nervous because i m beginner.. plz tell me ... if any site is available for it plz suggest me... On Fri, Feb 15, 2013 at 11:49 AM, Sergiy Khohlo

Re: please help me,how to create registration model

2013-02-14 Thread Sergiy Khohlov
Take a look at the examples https://docs.djangoproject.com/en/dev/topics/auth/default/ Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Feb 15, 2013 at 7:23 AM, Avnesh Shakya wrote: > please help me,i m beginner i m creating my registration model but how can > i write password field

Re: how to password will come in hidden form in django?

2013-02-14 Thread Sergiy Khohlov
Gave you checked django-auth befor start ? This module has all for you. You should not code code which is already coded :-) Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Feb 15, 2013 at 8:11 AM, Avnesh Shakya wrote: > i have created my Userinfo model for registration, but pas

how to password will come in hidden form in django?

2013-02-14 Thread Avnesh Shakya
i have created my Userinfo model for registration, but password is showing means it's not filling in hidden form so what will i have to do for it... please help me class Userinfo(models.Model): full_name=models.CharField(max_length=30) username=models.CharField(max_length=20) email_address=

please help me,how to create registration model

2013-02-14 Thread Avnesh Shakya
please help me,i m beginner i m creating my registration model but how can i write password field? 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 a

Bootstrap does not format my templates..

2013-02-14 Thread galvanjg
Hi Guys I am learning Django and trying to use Bootstrap, I already download bootstrap and put it under 'D:\django14\projects\nomina\nom_mex\static', I have Django 1.4 and use the developer server "runserver". According Django's documentation says referent it I need to use STATICFILES_DIRS and

Re: how do i run project level tests?

2013-02-14 Thread Nikolas Stevenson-Molnar
Just realized I misunderstood your question, sorry. You have test which cover the project as a whole, rather than individual apps, is that correct? _Nik On 2/14/2013 6:02 PM, Nikolas Stevenson-Molnar wrote: > Why doesn't it make sense to leave them in the app? That's fairly common > practice. You

Re: Is there an easy way to popup forms?

2013-02-14 Thread Felipe Prenholato
This can't be included in Django core because does not have a really generic solution. AjaxViews like I posted can handle only POST or can also handle GET and POST, so instead of only reply form with errors also render initial form on GET. Also, is hard to define a standard for responses... I like

Re: how do i run project level tests?

2013-02-14 Thread Nikolas Stevenson-Molnar
Why doesn't it make sense to leave them in the app? That's fairly common practice. You'll see tests shipped with a lot of 3rd-party apps (and for that matter with a lot of code libraries in general). For running the tests, see this doc: https://docs.djangoproject.com/en/1.4/topics/testing/ _Nik O

how do i run project level tests?

2013-02-14 Thread calum mchaffie
I have a django project with a couple apps. Where do i put tests for the project (as it doesnt make sense to have them in an app)? and how do i run them? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop r

Re: Is there an easy way to popup forms?

2013-02-14 Thread Kelly Nicholes
I was looking for something like this for CBVs about a week ago! I'm glad this guy posted this question more clearly than mine to get this response. I might try this out! Thanks. This is a very common pattern, I've found, and wasn't sure why it wasn't included in django's core! On Thursday,

Re: A small bug for dynamic choices

2013-02-14 Thread vijay shanker
code is getting executed when Django validates it's models. Hence, Cartprobably has not been validated yet and it's model class is None. On Monday, February 11, 2013 4:29:44 PM UTC+5:30, vijay shanker wrote: > > hi > i wrote a function for producing tuples of all model names, which is this: >

Re: Questions about vim

2013-02-14 Thread yati sagade
Check out this post by @haridas_n On Fri, Feb 15, 2013 at 12:02 AM, Trevor Joynson wrote: > Jedi seems to work the best for me. > > My vim config is on my github if you're interested: > http://github.com/akatrevorjay/dotfiles-vim.got > On Feb 12, 2013 6:

Re: Questions about vim

2013-02-14 Thread Trevor Joynson
.git not .got, sorry on a phone On Feb 14, 2013 1:31 PM, trevorjoyn...@gmail.com wrote: Jedi seems to work the best for me. My vim config is on my github if you're interested: http://github.com/akatrevorjay/dotfiles-vim.got On Feb 12, 2013 6:23 AM, "Yussi" wrote: Hi, I was wondering if there a

Re: Questions about vim

2013-02-14 Thread Trevor Joynson
Jedi seems to work the best for me. My vim config is on my github if you're interested: http://github.com/akatrevorjay/dotfiles-vim.got On Feb 12, 2013 6:23 AM, "Yussi" wrote: > Hi, > I was wondering if there are any vim users here who managed to get a > productive working environment for djang

Re: Is there an easy way to popup forms?

2013-02-14 Thread frocco
I get a popup for the first row only and it will not allow me to close the window. On Wednesday, February 13, 2013 11:12:44 AM UTC-5, frocco wrote: > > I have a form I want to popup and am having trouble getting this to work. > This is not in the admin page. > > Can someone give me an example? >

Re: Using template fragment caching *inside* a sitewide cache: possible?

2013-02-14 Thread Matt Andrews
Hi Tom, Yep, you've got the problem right. Reading it back that way I see the issue much more clearly... One approach I thought of: what if, instead of the sitewide caching, I used template-fragment caching for *every* view (there aren't that many) and invalidated the relevant ones along with

Re: Is there an easy way to popup forms?

2013-02-14 Thread Felipe Prenholato
You can't put {{ row.sku }} out of id. Try this: open the dialog This is a test $( "#dialog{{ row.sku }}" ).dialog({ autoOpen: false }); $( "#opener" ).click(function() { $( "#dialog{{ row.sku }}" ).dialog( "open" ); }); 2013/2/14 frocco > open the dialog >

Re: Using template fragment caching *inside* a sitewide cache: possible?

2013-02-14 Thread Tom Evans
On Mon, Feb 11, 2013 at 1:42 PM, Matt Andrews wrote: > Hi all, > > I've been experimenting with an expensive query I need to call (essentially > grabbing data from some Google APIs). I tried this experiment: > > A sitewide cache with a long (days) expiry time > A template fragment with its own sep

Re: Object composition in django

2013-02-14 Thread Ray Hatfield
Thanks, but I've omitted related_name and I've used distinct related_names and gotten the same errors. I don't want to reuse addresses. The one-to-one relationship you describe is precisely what I'm trying to do. On Feb 14, 2013, at 1:32 AM, Jani Tiainen wrote: > Hi, > > You're trying to setu

Re: Using template fragment caching *inside* a sitewide cache: possible?

2013-02-14 Thread Matt Andrews
Apologies for bumping this thread, but is there anybody with any insight on this? Really driving me crazy! On Monday, 11 February 2013 13:42:05 UTC, Matt Andrews wrote: > > Hi all, > > I've been experimenting with an expensive query I need to call > (essentially grabbing data from some Google AP

Re: Question from a very beginner: Include dynamic template

2013-02-14 Thread Olivier
Thank you for your answer, actually I didn't know I can do this kind of things* :D I'm not very familiar with the using of framework !* Thank you for your help ! Le mercredi 13 février 2013 22:10:37 UTC+1, Daniel Roseman a écrit : > > On Wednesday, 13 February 2013 03:52:20 UTC-8, Olivier wrote:

Re: Is there an easy way to popup forms?

2013-02-14 Thread frocco
I tried to get this working, but I can only display one box. How do I do this if I am displaying a list of products? open the dialog This is a test $( "#dialog"{{ row.sku }} ).dialog({ autoOpen: false }); $( "#op

Re: django generate pdf with tables and charts

2013-02-14 Thread Jaimin Patel
Sorry I posted the answer on wrong thread, Sure. I had tried to render PDF with pisa, template = get_template(template_src) context = Context(context_dict) html = template.render(context) result = StringIO.StringIO() pdf = pisa.pisaDocument(StringIO.StringIO(html.encode("I

Re: django generate pdf with tables and charts

2013-02-14 Thread Jaimin Patel
Sure. I had tried to render PDF with pisa, template = get_template(template_src) context = Context(context_dict) html = template.render(context) result = StringIO.StringIO() pdf = pisa.pisaDocument(StringIO.StringIO(html.encode("ISO-8859-1")), result, link_callback=fetch_re

Re: Multiple sites and inheritance

2013-02-14 Thread Avraham Serour
I'm not sure you can inherit the whole project, in any case I believe you could make a boilerplate project and override whatever settings or models as needed. On Thu, Feb 14, 2013 at 11:25 AM, Jonathan ATTON wrote: > Hello, > > I currently have a website made with Django. I use models, databases

Re: Is there an easy way to popup forms?

2013-02-14 Thread Felipe Prenholato
I use bootstrap modal with some jquery code. jQuery code isnt hard, on Django side what you need is special treatment for ajax call so you can render template for form (and only form), so you can load it into modal. Fortunately I wrote a AjaxUpdateView yesterday. It is in beta, but check at https

Announce: DjangoSprint 13.2 in Japan.

2013-02-14 Thread Hiroki Kiyohara
To: Django guys. Hello, I am Hiroki Kiyohara. I will let you know the holding of DjangoSprint in Japan. The detail page about this event is here (in Japanese, sorry) http://djangoproject.jp/weblog/2013/02/14/djangosprint_13_2/ I will write a report about this event to this djangoja weblog (yes,

Updated Django by Example tutorials

2013-02-14 Thread hoffman
Let me express my many Appreciations for your time & efforts for excellent Django by Example compilation. -- 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

Multiple sites and inheritance

2013-02-14 Thread Jonathan ATTON
Hello, I currently have a website made with Django. I use models, databases, admin ... Now I need to create two new sites based on this first site. The first site will become a abstract site. I will have to do some differents update on these two new sites: add attributs, update admin pages,

Re: django generate pdf with tables and charts

2013-02-14 Thread Frank Bieniek
Checkout happypdf.com rest call to create your pdfs Am 14.02.2013 04:28, schrieb Waitman Gobble: On Feb 10, 2013 8:11 AM, "Jaimin Patel" > wrote: > > I am trying to generate pdf using django template, also need some support of javascript code. I have tried PISA,

select_related() estrange behaviour

2013-02-14 Thread nsbk
Hi, I am using select_related in a loop in order to reduce database hits. The weird thing is that I get a different result set when using select_related(); This is not the actual code, but a simple example that illustrates the problem: >>> rr = > RouteTableRangeProvider.objects.filter(routeta