Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 May 12, 2001 18:09:30

Mori ..
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

A question


Hi  We have a question,can this GTK program install in Sun solaris  system?  By the way,which gtk program can install Sun solaris system?Thanks.Best RegardsMori LinTest Engr. of ASE (Chung-Li) Inc.TEL:886-3-4547776FAX:886-3-4623384Adress:550,Chung-Hwa Road Section 1 Chung-Li Taiwan R.O.C.

Offline

#2 Nov. 26, 2005 09:50:22

P.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

A question


Hello,
In my web application I would like to separate admin interface from the
rest. In other words I would like users to login to my web
application via my own interface not via admin.Is it possible?
(I think it should be but then I do not know how to use things such
as
request.user (to find currently logged-in user) because I noticed that
it works with users logged in via admin interface.)
Thank you for help and/or the explanation.
Regards,
L.

Offline

#3 Nov. 27, 2005 11:51:41

s.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

A question


Well, being a newbie, I'm not sure of the best way to do this, but
here's one solution I use myself:

the view (.../views/reports.py):
from django.views.decorators.auth import login_required
@login_required
def index(request):
return render_to_response('ttime/reports', {'title' : 'Reports'})

from urls.py:
(r'^reports/logout', 'django.views.auth.login.logout'),
(r'^reports/login', 'django.views.auth.login.login'),
(r'^reports/', 'ttime.apps.ttime.views.reports.index'),

Cheers
/LarS

Offline

Board footer

Moderator control

Enjoy the 22nd of January
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support