Re: how to delete in the admin - strategy needed

2013-02-05 Thread Mike Dewhirst
Solved I was culling children based on redundancy but a missing child was being automatically inserted again. The error was being correctly reported as a DoesNotExist problem but until I noticed the incremented pk in the database I was looking in the wrong places. Thanks again for your effor

Re: Object level permissions implementation

2013-02-05 Thread Jani Tiainen
Actually I had slightly incorrect term: I need _field_ (column) level permissions, not object (row) level permissions. 6.2.2013 8:36, Jani Tiainen kirjoitti: No it's not, it's more like enhancement to standard Django permissions that works with predefined "named" permissions. But I need to a

plz help me for error in python for django.....

2013-02-05 Thread Avnesh Shakya
Here i want to explore database API but it's generating error.. C:\mysite>python manage.py shell Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from polls.mo

Re: Django ForeignKey versus ManyToManyField

2013-02-05 Thread Daniel Roseman
On Tuesday, 5 February 2013 22:39:30 UTC-8, vijay shanker wrote: > Hi > I have two models, a Customer model and a WishListItem model (which stores > products). I have option of either having a ManyToManyField in Customer to > WishListItem, or I can have a customer ForeignKey to customer for each

Django ForeignKey versus ManyToManyField

2013-02-05 Thread vijay shanker
Hi I have two models, a Customer model and a WishListItem model (which stores products). I have option of either having a ManyToManyField in Customer to WishListItem, or I can have a customer ForeignKey to customer for each WishListItem. Which one will be more efficient ? Thanks -- You recei

Re: Object level permissions implementation

2013-02-05 Thread Jani Tiainen
No it's not, it's more like enhancement to standard Django permissions that works with predefined "named" permissions. But I need to actually look data of instance and using that to check does user have permission to access instance. Let's make this slightly simpler: I have a plan model: cl

Re: Finding a project for django user registration

2013-02-05 Thread Zhao Quan
hi all when I trying 'userena', I get the exception which is "siteprofilenotavailable" I do some google at first, some one suggest upgrade django. but I use the latest version of django. interesting thing is I find this topic. https://github.com/bread-and-pepper/django-userena/issues/153 the cre

Re: Finding a project for django user registration

2013-02-05 Thread Zhao Quan
Thanks Ezequiel Im trying this. On Wed, Feb 6, 2013 at 10:08 AM, Ezequiel wrote: > On Tuesday, February 5, 2013 10:52:19 PM UTC-3, Zhao Quan wrote: > >> at last, I find this one >> https://github.com/**nathanborror/django-**registration >> >

Re: how to delete in the admin - strategy needed

2013-02-05 Thread Mike Dewhirst
Pankaj, thank you I have tried the code in a number of ways - including the way you wrote it[1] - and located in either Master[2] or Parent and it always runs to completion without raising its own exception. It happily prints out progress flags in the dev server and then finally delivers the 5

Re: Finding a project for django user registration

2013-02-05 Thread Ezequiel
On Tuesday, February 5, 2013 10:52:19 PM UTC-3, Zhao Quan wrote: > at last, I find this one > https://github.com/nathanborror/django-registration > > but, seems it create in 3 years later and no update in current. > Is there any suggest for is issue? > > Check out https://github.com/bread-and-pep

Re: need help

2013-02-05 Thread Russell Keith-Magee
On Wed, Feb 6, 2013 at 8:27 AM, Thiago Avelino wrote: > I believe that this list is not for this kind of topic. > > When you put this kind of topic as [Off topic] > I don't know where you got this idea. If something is off topic you don't invent some sort of special subject syntax for it -- you *

Re: Finding a project for django user registration

2013-02-05 Thread Nikolas Stevenson-Molnar
I don't think that repository is the canonical version. AFIK django-registration is still experiencing active development. See the docs here: http://docs.b-list.org/django-registration/0.8/ _Nik On 2/5/2013 5:52 PM, Zhao Quan wrote: > Hi all, > > Im a fish for django. > > I go throw a django tuto

Re: need help

2013-02-05 Thread Thiago Avelino
I believe that this list is not for this kind of topic. When you put this kind of topic as [Off topic] Cheers, Thiago Avelino On Tue, Feb 5, 2013 at 2:33 PM, salah D.J wrote: > i have a web provisioning project > and i need developer to to install it and change some features > we can

Re: Documentation error report

2013-02-05 Thread Russell Keith-Magee
Hi Lachlan, If you want to make sure this isn't forgotten in the noise, the best thing to do is open a ticket. That way we've got something to keep track of. You might even want to take a swing at writing a patch -- documentation patches are pretty easy to write, so they can be a good way to get f

Re: Django superstars I should be following?

2013-02-05 Thread Glyn Jackson
thanks :) perfect. -- 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-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@

Re: Need guidance on static website conversion to Django

2013-02-05 Thread Steve Metivier
That may well be an immediate step I could take to speed up load times, but improving load times is only one of the reasons for the conversion. I also want to replace the current Wordpress blog, and add new functionality, such as the ability for visitors to share quotes socially, support user-c

Re: template for "Pagination for admin inlines" snippet

2013-02-05 Thread Conor Pollock
I'm currently trying to figure this out as well... I can pass a page query in the url and everything works as expected, but I can't figure out how to render the pagination controls in my template file. Did you ever get this to work? On Monday, 8 October 2012 10:37:09 UTC-4, axel...@chaos1.de w

Re: Django superstars I should be following?

2013-02-05 Thread Thiago Avelino
@jessenoller @kennethreitz @garybernhardt @craigkerstiens @avelino0 @andrewgodwin @alex_gaynor Cheers, Thiago Avelino On Tue, Feb 5, 2013 at 6:51 PM, Glyn Jackson wrote: > I'm looking for suggestions on who to follow on twitter. > Who are the Django superstars, and the opinionated and guy

Documentation error report

2013-02-05 Thread Lachlan Musicman
Hola, I was just reading up on inlineformsets et al here: https://docs.djangoproject.com/en/dev/ref/forms/models/#django.forms.models.inlineformset_factory And noted that the modelformset_factory and inlineformset_factory both mention changes in Django 1.6 with a link to the release notes. Ther

Re: Django superstars I should be following?

2013-02-05 Thread Pankaj Singh
Hey, I follow these people on twitter - https://twitter.com/jacobian https://twitter.com/aymericaugustin https://twitter.com/spookylukey https://twitter.com/julienphalip https://twitter.com/freakboy3742 https://twitter.com/jezdez And these too https://twitter.com/djangohire https://twitter.com/d

Re: Need guidance on static website conversion to Django

2013-02-05 Thread Avraham Serour
if the site is static why use a cms? just serve the static files, you won't get any faster than that On Tue, Feb 5, 2013 at 8:37 PM, Steve Metivier wrote: > >- Project: Convert an essentially static HTML website and its attached >WordPress blog, to Django, to improve on its currently sl

Django superstars I should be following?

2013-02-05 Thread Glyn Jackson
I'm looking for suggestions on who to follow on twitter. Who are the Django superstars, and the opinionated and guy/grils I should be following? :) Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: NoReverseMatch at /my_account/

2013-02-05 Thread frocco
I have not had to do a production install yet, I am still rewriting my PHP site in django. On Tuesday, February 5, 2013 2:22:53 PM UTC-5, Mulianto wrote: > > Oh great.. I have this problem too and cant figure it out. > > Now i know the problem. > > I hit this twice already... > > I am from php to

Re: NoReverseMatch at /my_account/

2013-02-05 Thread Phang Mulianto
Oh great.. I have this problem too and cant figure it out. Now i know the problem. I hit this twice already... I am from php too...but build with django is wonderfull and got speed in production :) On Feb 5, 2013 11:04 PM, "frocco" wrote: > Coming from PHP, I love django. > > On Tuesday, Febru

Need guidance on static website conversion to Django

2013-02-05 Thread Steve Metivier
- Project: Convert an essentially static HTML website and its attached WordPress blog, to Django, to improve on its currently slow load time, and to enable its functionality to be extended. (It’s currently implemented on a platform that I believe introduces significant overhead

Re: Object level permissions implementation

2013-02-05 Thread Nikolas Stevenson-Molnar
If I understand correctly, that's exactly what it's for: https://code.osuosl.org/projects/object-permissions/wiki/Using#Checking-Perms _Nik On 2/4/2013 10:17 PM, Jani Tiainen wrote: > Afaik object-permission works reverse what I need - it adds spesific > permissions to groups/users to single obje

Re: Controlling GPIO on rasPi, need help with Refreshing switch status without reloading page via jquery

2013-02-05 Thread MattDale
I think you are on the right track with the jquery setup for handling the submission of the form. What you need to implement here is an AJAX form. I would do something like this, although I don't necessarily know what I'm doing: $(document).ready(function () { var form = $("#gpio_form") var b

Re: how to delete in the admin - strategy needed

2013-02-05 Thread Pankaj Singh
Hey Mike, I tried to replicate what you were trying to do and I got it working. By the way, you can directly delete filtered child objects, no need to create a list. And you don't need to create a list for iterating over a queryset. Queryset supports iteration by default( https://docs.djangoproj

Re: Custum save on Foreignkey in Admin

2013-02-05 Thread Pankaj Singh
Hey Avnesh, First of all, your question is not related to current conversation. You should have started a new thread this. You are getting this error because foo.views.index does not exist, i.e., there is no `index` function in views.py file of your `foo` app. P.S. - Please use regular font size

Foreign key field update

2013-02-05 Thread KVR
Hi , I have two models. class Project(models.Model): proj_name = models.CharField(max_length=200) proj_desc = models.CharField(max_length=200) class Module(models.Model): pro_module = models.ForeignKey(Project) module_desc=models.CharField(max_length=200) Now the scenario is I want to se

need help

2013-02-05 Thread salah D.J
i have a web provisioning project and i need developer to to install it and change some features we can make deal send to me: i...@gahmi-tel.net -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

Re: NoReverseMatch at /my_account/

2013-02-05 Thread frocco
Coming from PHP, I love django. On Tuesday, February 5, 2013 3:25:28 AM UTC-5, Serkan Sökmen wrote: > > Yeah, i did the same once -) > > On Tue, Feb 5, 2013 at 1:07 AM, frocco >wrote: > >> Thank you, I can't tell you how long I struggled with this. >> >> On Monday, February 4, 2013 1:48:37 PM UTC-

Re: App-structure: how to have a bunch of data in all the pages.

2013-02-05 Thread Victor Rocha
I think template tags would be a good solution. Thank you, victor rocha www.rochapps.com On Tuesday, February 5, 2013 5:06:28 AM UTC-5, Stefano Tranquillini wrote: > > Hi all. > i've a conceptual problem that i would like to solve. > Let's take as example a blog. > In all the pages of the blog i

Re: Django South- Push to repo or not?

2013-02-05 Thread Javier Guerra Giraldez
On Mon, Feb 4, 2013 at 11:56 PM, mulianto wrote: > > if db schema change just do the schemamigration and migrate command in > production when deploy the change. if you include in in prod, how about south > db content? how you sync it with production site? that's exactly how South is designed to

Re: App-structure: how to have a bunch of data in all the pages.

2013-02-05 Thread serkan sokmen
# I use mixins in a project where i need to show a list of Collection objects in both list and detail views, # maybe this method would help you if you are using generic class-based views? class CollectionSidebarMixin(object): # Add collections to the context def get_context_data(self, **kw

Re: Custum save on Foreignkey in Admin

2013-02-05 Thread Avnesh Shakya
plz tell me why this error is coming here... after setting urls.py. plz help me.. ViewDoesNotExist at /admin/ Could not import foo.views.index. View does not exist in module foo.views. Request Method:GETRequest URL:http://127.0.0.1:8000/admin/Django Version: 1.4.3Exception Type:ViewDoesNotExi

Re: App-structure: how to have a bunch of data in all the pages.

2013-02-05 Thread Jonas Geiregat
On Tue, Feb 05, 2013 at 02:06:28AM -0800, Stefano Tranquillini wrote: > Now, i can create a base.html template where i render the data. but, how > should i do the population of these lists? > Should i create a middleware that for each request populates the lists? > or what? I think that a Context

App-structure: how to have a bunch of data in all the pages.

2013-02-05 Thread Stefano Tranquillini
Hi all. i've a conceptual problem that i would like to solve. Let's take as example a blog. In all the pages of the blog i would like to have a colum containing the list of tags and the list of the top-10 posts. Now, i can create a base.html template where i render the data. but, how should i d

Re: NoReverseMatch at /my_account/

2013-02-05 Thread serkan sokmen
Yeah, i did the same once -) On Tue, Feb 5, 2013 at 1:07 AM, frocco wrote: > Thank you, I can't tell you how long I struggled with this. > > On Monday, February 4, 2013 1:48:37 PM UTC-5, frocco wrote: >> >> I am getting NoReverseMatch at /my_account/ >> what is wrong with my urls? >> Thanks >> >