Re: Multiple levels of user in django application

2014-11-28 Thread Anju SB
Thank you Scot Hacker. But my application needs more than one user from the same group. On Friday, 28 November 2014 23:24:34 UTC+5:30, Scot Hacker wrote: > > > On Friday, November 28, 2014 3:16:41 AM UTC-8, Anju SB wrote: >> >> Dear Friends, >> >> I want to develop a django based GIS

Re: Multiple levels of user in django application

2014-11-28 Thread Scot Hacker
On Friday, November 28, 2014 3:16:41 AM UTC-8, Anju SB wrote: > > Dear Friends, > > I want to develop a django based GIS web application. In my application > there are different levels of users namely station level user, circle level > user etc. Each user details are provided in different

Re: Does Django offers a way to generate data grid from database table like web2py

2014-11-28 Thread donarb
On Wednesday, November 26, 2014 10:33:25 PM UTC-8, Sarbjit singh wrote: > > Hi, > > I have been using web2py for sometime. I am exploring Django now, in > web2py there is a way to generate data grids (using SQLFORM.grid) which > generates very net grid based on the data model with support to add

Constructing query

2014-11-28 Thread termopro
I have 2 models: Companies and Tags. A company may have several tags associated with it, so Tag contains many-to-many relation to Company. If i'd like to get Tags starting with "A" i'd write: tags = Tag.objects.filter(name__startswith='A').order_by('name').all() But how do i get the list of

nested inclusion tag that takes context

2014-11-28 Thread Florian Auer
Hi folks I have written 2 simple inclusion tags where one is nested inside the other. (settings.html uses the {% version %} tag) Both ones refer to the request object inside the context. The reason for this is, that I have a middleware that sets some flag variables to determine what type of

Re: Test client to a redirect requiring a login doesn't set redirect_chain properly? [2nd follow-up]

2014-11-28 Thread Tim Chase
On 2014-11-27 20:32, Tim Chase wrote: > As a bit of follow-up information, if I use runserver and browse to > the view, it redirects me to /admin/common/region/add/ but it > displays as the login screen. Am I missing why this wouldn't do a > redirect to my named login URL? A careful reading of

Re: Using data migration to create initial users errors

2014-11-28 Thread Markus Holtermann
Hey all together, unfortunately there isn't a way to add users through their manager in RunPython yet. The only solution I can see so far, is doing it manually, e.g. doing what your `create_user` method does inside RunPython. There is a patch though #23822 [1] that needs some tests and docs,

Re: Using data migration to create initial users errors

2014-11-28 Thread Guillaume Cisco
Did you find a way to use method create_user in a data migration? I can't see a way to import the manager for using it. Le jeudi 16 octobre 2014 23:19:43 UTC+2, Collin Anderson a écrit : > > Hi Ben, > > Yes, the custom manager objects are not available within migrations. I bet > you might be

PDF not saving on Django using open()

2014-11-28 Thread George Rogers
trying to save files on static after pdfcrowd provides the file. I've tried adding the path to be specific it doesn't work. from PyPDF2 import PdfFileMerger, PdfFileReaderfrom django.template import RequestContextfrom django.shortcuts import render_to_response, get_object_or_404 import

Multiple levels of user in django application

2014-11-28 Thread Anju SB
Dear Friends, I want to develop a django based GIS web application. In my application there are different levels of users namely station level user, circle level user etc. Each user details are provided in different table, How can I map/ relate the user with these tables. Pleas help me to

Re: Does Django offers a way to generate data grid from database table like web2py

2014-11-28 Thread aRkadeFR
Hello, From my point of view, you're asking for a similar MySQL admin with bootstrap style? Why not directly get a DB admin like pgadmin or so? The most similar thing will be the django admin as Timothy stated. Thank you, aRkadeFR On 11/28/2014 05:55 AM, Sarbjit singh wrote: What web2py GRID

Re: i want to know how to use SlugField with slugify to generate url for detail_blog page without using get_absolute_url

2014-11-28 Thread aRkadeFR
Hello Kanchan, Sorry to say, I didn't get your question. I don't see any get_absolute_url in your email. And your code seems legit. Could you provide more information about the problem? Thank you, aRkadeFR On 11/27/2014 10:26 PM, Kanchan Prasad wrote: my model.py is class

Re: Does Django offers a way to generate data grid from database table like web2py

2014-11-28 Thread Timothy W. Cook
The Django 'admin' section provides this functionality. On Fri, Nov 28, 2014 at 2:55 AM, Sarbjit singh wrote: > What web2py GRID does is, that it takes the SQL table/query as argument, > and return the records satisfying the query. > > Records which are returned are seen