On Tuesday, July 17, 2012 8:00:39 AM UTC+2, sandy wrote:
>
> I want to have different views for my application for different types
> of users. For this I have this code for my views.py file :
>
> def index1(request):
> u = User.objects.all()
>
This has been solved.
> if u.is
On Wed, Jul 18, 2012 at 3:13 PM, kenneth gonsalves
wrote:
> On Wed, 2012-07-18 at 14:10 +0530, Sandeep kaur wrote:
> request.user
Thank you sir , this was helpful. :)
--
Sandeep Kaur
E-Mail: mkaurkha...@gmail.com
Blog: sandymadaan.wordpress.com
--
You received this message because you are su
On Wed, 2012-07-18 at 14:10 +0530, Sandeep kaur wrote:
> On Tue, Jul 17, 2012 at 11:59 AM, @@ wrote:
> > u = User.objects.all()
> > u is not a user.
> >
> Oh yes, thank you for pointing.
> Please help me with this :
> How can I get the user id or 'u' of the user who has login using
> Django inbui
On Tue, Jul 17, 2012 at 11:59 AM, @@ wrote:
> u = User.objects.all()
> u is not a user.
>
Oh yes, thank you for pointing.
Please help me with this :
How can I get the user id or 'u' of the user who has login using
Django inbuilt authentication, so that I can give different views to
the users base
u = User.objects.all()
u is not a user.
On Tue, Jul 17, 2012 at 2:00 PM, Sandeep kaur wrote:
> I want to have different views for my application for different types
> of users. For this I have this code for my views.py file :
>
> def index1(request):
> u = User.objects.all()
> i
On Wed, Feb 22, 2012 at 2:28 PM, coded kid wrote:
> I've changed it!
> def get_absolute_url(self):
> #return u"%s" % (self.user)
> return u"/%i/%i/%i/%s/" % (self.date.year, self.date.month,
> self.date.day, self.id)
> but I'm getting page not found,
This URL must match a URL in you
(r'^comments/posted/$', 'myweb.meekapp.views.comment_posted' ),
On Feb 22, 3:37 pm, Ejah wrote:
> How does your urls.py look?
>
> On 22 feb, 15:28, coded kid wrote:
>
>
>
>
>
>
>
> > I've changed it!
> > def get_absolute_url(self):
> > #return u"%s" % (self.user)
> > return u"/%
How does your urls.py look?
On 22 feb, 15:28, coded kid wrote:
> I've changed it!
> def get_absolute_url(self):
> #return u"%s" % (self.user)
> return u"/%i/%i/%i/%s/" % (self.date.year, self.date.month,
> self.date.day, self.id)
> but I'm getting page not found,
>
> Page not foun
I've changed it!
def get_absolute_url(self):
#return u"%s" % (self.user)
return u"/%i/%i/%i/%s/" % (self.date.year, self.date.month,
self.date.day, self.id)
but I'm getting page not found,
Page not found (404)
Request Method: GET
Request URL:http://127.0.0.1:8000/2012/2
Thanks for the reply! But it's still not working. Should I put 5 !=4
below the return in models.py?
On Feb 22, 3:15 pm, Thomas Rega wrote:
> Am 22.02.12 15:11, schrieb coded kid:
>
> > return u"/%i/%i/%i/sol/%i/%s/" % (self.date.year,
> > self.date.month, self.date.day, self.id)
>
> 5 != 4
>
>
Am 22.02.12 15:11, schrieb coded kid:
return u"/%i/%i/%i/sol/%i/%s/" % (self.date.year,
self.date.month, self.date.day, self.id)
5 != 4
cheers ...
--
http://thoreg.com
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this gr
11 matches
Mail list logo