Re: urls not maching

2014-07-13 Thread ngangsia akumbo
Those are actual urls , i am actually still developing this site, so i decided to start with a blog first -- 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

Re: Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-13 Thread Mike Dewhirst
On 14/07/2014 9:23 AM, Aeh. ABID wrote: i'm bit confused here, shouldn't ovverride delete() instead of save() ? and how to retrieve selected items ? Not really. You don't want to delete anything. You want to break a link. Making the foreign key field null will do that. It sounds like you

Re: Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-13 Thread Aeh. ABID
i'm bit confused here, shouldn't ovverride delete() instead of save() ? and how to retrieve selected items ? On Sunday, July 13, 2014 7:48:05 PM UTC+1, Aeh. ABID wrote: > > > > I Have a model AB that holds two foreign keys A_id and B_id. > > class AB(models.Model): > A_id =

Re: Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-13 Thread Mike Dewhirst
On 14/07/2014 4:48 AM, Aeh. ABID wrote: I Have a model AB that holds two foreign keys A_id and B_id. |class AB(models.Model): A_id= models.ForeignKey('A') B_id= models.ForeignKey('B') field_1= models.CharField(max_length=200, blank=True) field_2=

Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-13 Thread Aeh. ABID
I Have a model AB that holds two foreign keys A_id and B_id. class AB(models.Model): A_id = models.ForeignKey('A') B_id = models.ForeignKey('B') field_1 = models.CharField(max_length=200, blank=True) field_2 = models.CharField(max_length=200, blank=True) When editing A

Re: urls not maching

2014-07-13 Thread Thomas Lockhart
On 7/13/14 7:19 AM, ngangsia akumbo wrote: no am not using two slashes, i just want my block links to output the content details but i keep having the error above i need some help here You are getting some help here. The details you have provided so far seem to indicate that you are providing

Re: Admin UI not commiting to DB

2014-07-13 Thread Derek
I am sure that any update will help others who might have this issue. I have been using the Django admin (on and off) for many years now and have not had this particular problem (yet). It would also be useful to post more (non-confidential) details in a blog, perhaps. On Sunday, 13 July 2014

Re: urls not maching

2014-07-13 Thread ngangsia akumbo
can someone help me with a url that will work? -- 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

Re: validators not working in shell

2014-07-13 Thread alghafli
Thank you. That helped me solving the problem :) على السبت 12 تـمـوز 2014 20:12, كتب tim: Model validation is not invoked when calling model.save(). You can read more here: https://docs.djangoproject.com/en/1.6/ref/models/instances/#validating-objects On Saturday, July 12, 2014 6:46:17 AM

Re: urls not maching

2014-07-13 Thread ngangsia akumbo
no am not using two slashes, i just want my block links to output the content details but i keep having the error above i need some help here On Sunday, July 13, 2014 12:52:20 PM UTC+1, Jonathan Querubina wrote: > > It seems tha you are using blog// (two slashes) on the url. Try blog/ > > > --

Re: urls not maching

2014-07-13 Thread Jonathan Querubina
It seems tha you are using blog// (two slashes) on the url. Try blog/ Sent from my iPhone > On Jul 13, 2014, at 6:52, ngangsia akumbo wrote: > > > > Here is the similar probe > > views File > # Create your views here. > from blog.models import Post > from

Re: urls not maching

2014-07-13 Thread ngangsia akumbo
Here is the similar probe *views File* *# Create your views here.from blog.models import Postfrom django.shortcuts import render_to_responsefrom django.template import RequestContextdef news_index(request):posts = Post.objects.all().order_by('published_date')context =