How to restrict save function in Django admin

2014-12-02 Thread Akshay Mukadam
Hi, I have developed application that loads CSV file, if the input received while parsing the CSV file in Django admin is wrong, it throws a stacktrace, to avoid stacktrace I have handled the exception and I am able to show the error message using the Message framework in django. But the

Re: how to pass request.user in .hbs file in django

2014-12-02 Thread JAI PRAKASH SINGH
sir, thank you for reply. but actually this mistake was while posting , in my actual code request.user is present . so please if some more guidance from your side please share ... On Tue, Dec 2, 2014 at 7:16 PM, Jerry Dumblauskas wrote: > missing the t?

Re: Django data replication example

2014-12-02 Thread Collin Anderson
Hi Sebastian, Do you mean worked on a Django project where database replication was involved? Collin On Monday, December 1, 2014 1:31:19 PM UTC-5, Sebastian M Cheung wrote: > > Hi, > > Anyone worked on Django data replication project? Please comment your > experiences or links Thanks > > > >

Re: Generic Views and Django.contrib.auth

2014-12-02 Thread Collin Anderson
Hi, It's probably possible. Do you mean url reversing the login view, or url reversing the view where login is required? Collin On Sunday, November 30, 2014 11:07:42 PM UTC-5, Rootz wrote: > > Hi can this work with url reversing namespaced urls? > thanks > > On Thursday, October 16, 2014

Re: Query set append

2014-12-02 Thread check . django
Thanks guys . Appreciate the help !! On Monday, December 1, 2014 11:07:59 AM UTC-8, check@gmail.com wrote: > > Hello > > I am very new to python and Django . I have a basic question : > > 1. I have three database tables : Table A , Table B and Table C > 2. in my views.py i do : > >-

Re: Web and mobile app with Django? Kivy? sth else?

2014-12-02 Thread Cal Leeming
Hi Mariusz, Short answer - Hack something together in the fastest way possible, don't worry about it being clean, tidy or even tested. Because if you do, you'll still be working on this project in 2 years time... Look at using something like PhoneGap [8], just enjoy the experience and ship it :)

Beginner: Creating a form with variable number of checkboxes

2014-12-02 Thread T Kwn
I'm creating a page where the user can add other users to a group. I am able to dynamically fetch all users and list them on a template with checkboxes. I'm getting stuck creating a form for them however. I read this post (among others)

Re: Error: 'NoneType' object has no attribute 'strip'

2014-12-02 Thread Mike Dewhirst
On 3/12/2014 1:58 AM, Danish Ali wrote: can someone help please ? I haven't been watching this thread but I just solved a similar problem with 'NoneType is not iterable' My problem was fixed when I ensured the functions involved got passed a type they were expecting. I'm guessing you

Re: Web and mobile app with Django? Kivy? sth else?

2014-12-02 Thread Mariusz Wilk
> > Thanks. But is it possible to create a pretty web/mobile app with pop-ups, > buttons, input boxes, pics etc in Django/Python alone? > I'm asking since I'm doing Django tutorial and so far I only have a > raw-looking poll (as an example). > When a website is made with Django does it

Re: Reverse for 'results' with arguments '(3L,)' and keyword arguments '{}' not found.

2014-12-02 Thread Terry Lang
That fixed it. I guess my eyes are getting bad. Thanks for the help. On Tuesday, December 2, 2014 6:39:46 AM UTC-8, Terry Lang wrote: > > I am in the middle of tutorial 4, but am getting an error. > What did I do wrong? > > NoReverseMatch at /polls/3/vote/ > > Reverse for 'results' with

Re: Multiple levels of user in django application

2014-12-02 Thread Scot Hacker
On Tuesday, December 2, 2014 1:53:36 AM UTC-8, Anju SB wrote: > > > We can't modify the 5 user details tables, because the other applications > are associated with that table. It is required to map these table with user > table. But using the foreign key relationship we can only relate to one

Re: Reverse for 'results' with arguments '(3L,)' and keyword arguments '{}' not found.

2014-12-02 Thread donarb
On Tuesday, December 2, 2014 6:39:46 AM UTC-8, Terry Lang wrote: > > I am in the middle of tutorial 4, but am getting an error. > What did I do wrong? > > NoReverseMatch at /polls/3/vote/ > > Reverse for 'results' with arguments '(3L,)' and keyword arguments '{}' not > found. 1 pattern(s) tried:

Re: Redirect user inside Class-Based views

2014-12-02 Thread Rootz
thanks On Tuesday, December 2, 2014 9:22:32 AM UTC-5, Andréas Kühne wrote: > > 2014-12-02 15:17 GMT+01:00 Rootz : > >> I have a small Django App using several Class-Based Views but I am >> contemplating how the class views would redirect a user based upon a >> condition? In

Re: Using login_required decorator

2014-12-02 Thread Rootz
Thanks I got it to work... On Tuesday, December 2, 2014 7:22:30 AM UTC-5, Daniel Roseman wrote: > > On Monday, 1 December 2014 23:59:00 UTC, Rootz wrote: >> >> I have a small project but I am trying to restrict access on some of the >> django app urls to login users only. The problem is that

Re: Error: 'NoneType' object has no attribute 'strip'

2014-12-02 Thread Danish Ali
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 Mon, 1 Dec 2014 10:20:24 -0300 >>

Reverse for 'results' with arguments '(3L,)' and keyword arguments '{}' not found.

2014-12-02 Thread Terry Lang
I am in the middle of tutorial 4, but am getting an error. What did I do wrong? NoReverseMatch at /polls/3/vote/ Reverse for 'results' with arguments '(3L,)' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'polls/(lP\\d+)/results/$'] Request Method: POST Request URL:

Re: Redirect user inside Class-Based views

2014-12-02 Thread Andreas Kuhne
2014-12-02 15:17 GMT+01:00 Rootz : > I have a small Django App using several Class-Based Views but I am > contemplating how the class views would redirect a user based upon a > condition? In my case I would like to redirect user who are not > authenticated. Just how do I go

Redirect user inside Class-Based views

2014-12-02 Thread Rootz
I have a small Django App using several Class-Based Views but I am contemplating how the class views would redirect a user based upon a condition? In my case I would like to redirect user who are not authenticated. Just how do I go about doing that? thanks -- You received this message

Re: how to pass request.user in .hbs file in django

2014-12-02 Thread Jerry Dumblauskas
missing the t? reques.user to request.user On Tue, Dec 2, 2014 at 7:42 AM, JAI PRAKASH SINGH < jaiprakashsingh...@gmail.com> wrote: > hello all, > > i am very new to django , i have just started to work on django , > > i am using .hbs file in django project > my aim is to use request.user in

how to pass request.user in .hbs file in django

2014-12-02 Thread JAI PRAKASH SINGH
hello all, i am very new to django , i have just started to work on django , i am using .hbs file in django project my aim is to use request.user in .hbs file i am trying this ... not working

Re: Query set append

2014-12-02 Thread Florian Schweikert
On 2014-12-01 20:07, check.dja...@gmail.com wrote: * I load the temple : template = loader.get_template(>.html>) * i use context : context = RequestContext(request,{ 'tableC_QuerySet': tableC_QuerySet,}) * return HttpResponse(template.render(context)) you may also have

Re: Using login_required decorator

2014-12-02 Thread Daniel Roseman
On Monday, 1 December 2014 23:59:00 UTC, Rootz wrote: > > I have a small project but I am trying to restrict access on some of the > django app urls to login users only. The problem is that when I hit a page > that requires login users I expected that they(users) are redirected to the > login

Re: Query set append

2014-12-02 Thread Daniel Roseman
On Monday, 1 December 2014 19:07:59 UTC, check@gmail.com wrote: > > Hello > > I am very new to python and Django . I have a basic question : > > 1. I have three database tables : Table A , Table B and Table C > 2. in my views.py i do : > >- tableB_QuerySet =

Re: Problem Making New Django project - please help

2014-12-02 Thread Florian Schweikert
On 2014-12-02 10:59, Shashwat singh wrote: ImportError: Could not import settings 'my_project.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named my_project.settings PLEASE HELP WITH THIS there is not enough information to see the cause of the

Re: Problem Making New Django project - please help

2014-12-02 Thread Daniel Roseman
On Tuesday, 2 December 2014 09:59:30 UTC, Shashwat singh wrote: > > > > PLEASE HELP WITH THIS > Nobody can possibly help with this. This is a random error message. What were you doing when you got it? What did you type at the command line? What code do you have already? And, please do not

Problem Making New Django project - please help

2014-12-02 Thread Shashwat singh
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/bin/django-admin.py", line 5, in management.execute_from_command_line() File

Re: Multiple levels of user in django application

2014-12-02 Thread Anju SB
We can't modify the 5 user details tables, because the other applications are associated with that table. It is required to map these table with user table. But using the foreign key relationship we can only relate to one table. How can I design models without affecting the 5 tables

ANN: eGenix mxODBC Connect 2.1.2 - Python Database Interface

2014-12-02 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mxODBC Connect Python Database Interface Version 2.1.2 mxODBC Connect is our commercially supported client-server product for