Dear All ...
I need something like django-registration, but currently my app use 2
different completely seperated user tables :
1. The default auth.user
2. myproj.user table
The first table will only used for server administration, and the actual
day-to-day operation will based on that
Nevermind.
I Solved this problem by another route.
Subclass the ModelAdmin, and overide : log_addition, log_change,
log_deletion method.
Sincerely
-bino-
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and
Dear All ..
I Try to write a custom auth backend.
It'll use external user model/table, let's call it 'myuser'
With this scenario, the LogEntry will receive a user_id that not exist
in default User model.
So it will generate exception.
I read that we can do a 'pre_save' signal receiver for
Dear All.
I've something like this :
START-
class L2GroupForm(ModelForm):
#Try to lock ForeignKey field to single value
class Meta:
model = L2Group
widgets = {
'company_id': TextInput(),
}
class L2GroupAdmin(admin.ModelAdmin):
Dear Tom and all
I really appreciate your response
On Thursday, February 28, 2013 9:13:56 PM UTC+7, Tom Evans wrote:
>
> It seems like you are asking how to do multi-tenancy in the stock django
> admin?
>
> Yes, excatly
> Multi tenancy is tricky in django. Is there any reason you are not
>
On Thursday, February 28, 2013 2:37:54 PM UTC+7, Bino Oetomo wrote:
>
> My question is how to make :
> 1. Car list : Only show cars with company_id=myuser.company_id
>
Question #1 is solved
> 2. Create/Update : 'Company choice list' locked to the one with
> value=myus
Dear All..
Currently I have custom authentication backend,
This backend return user-object with additional attributes
START
Python 2.7.3 (default, Aug 1 2012, 05:16:07)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
On Feb 28, 2:39 am, Thomas Weholt wrote:
>
> Documentation and tutorial
> athttps://bitbucket.org/weholt/django-quickview/src/fde97a0a0befaeda0ab...
> for details.
>
Some how I failed to install .
The pip log pasted at http://pastebin.com/ZNcc8CuH
Sincerely
-bino-
--
On Saturday, February 23, 2013 11:03:20 PM UTC+7, Gabriel - Iulian Dumbrava
wrote:
>
> As far as I remember there is already a package out called django-saas or
> something like that.
>
> Let me know how you solve it.
> Gabriel
>
> I think I'll take :
1.
Dear Gabriel Sir.
I really appreciate your response
On Saturday, February 23, 2013 11:00:10 PM UTC+7, Gabriel - Iulian Dumbrava
wrote:
>
> How I would do it would be to have a special column (foreign key) in each
> table (model) called Company (company_id)
Yes , thats the plan
> and change
Hi Delcio
On Feb 23, 10:43 am, Delcio Torres wrote:
> Dear Sirs,
>
> Maybe this is a concept question, but here we go.
>
> I'm doing test development to learn django and using admin for everything.
>
> This is a Company/Employee/HeathInsurance CRUD system.
>
> The main
Dear all
I try to make custom form.
I got this Database error http://oi45.tinypic.com/29nct4w.jpg
It's strange for me, since I didn't request any call to that
'myauth_myuser.company_id' coloumn in my admin.py ( http://pastebin.com/MEUtREtv
).
Kindly please give me your enlighment.
Sincerely
Dear Nikolas and all
I really appreciate your response.
On Feb 23, 2:17 am, Nikolas Stevenson-Molnar
wrote:
> I don't think it's necessary to duplicate the User model to accomplish
> what you want. Instead, you could write a model with the extra data you
> need, relate
Respond to my own post
Password encryption is fix,
But authentication result different between sheel and we.
I Post the problem at
https://groups.google.com/group/django-users/browse_thread/thread/d3c508ce2a0f2dec
--
You received this message because you are subscribed to the Google Groups
Dear All
Background: at
https://groups.google.com/group/django-users/browse_thread/thread/df70d373f3285e97#
Now, the password encyption problem is fixed
i put this line on my setting
---START--
AUTHENTICATION_BACKENDS = ('l2auth.backends.L2Backend',
Dear All.
I try to write what I call as 'l2auth' or '2nd Level Auth'
it's :
1. because my application will be co-use by some 'company'
2. because I want to delegate user administration to each company
3. I want user login with username format as user@company (it is not
an email)
4. Basically a
Dear All.
I'm trying to write a single site application that will used by multi
client.
it's about Cell Site Co-location management.
So there will be some Network operators, and some cell-Site Providers
Let's say that :
1. Network operators is : mno1, mno2, mno3, and
2. cell-site providers is :
On 10/21/2011 10:49 AM, bino oetomo wrote:
On 10/21/2011 10:31 AM, Venkatraman S wrote:
https://docs.djangoproject.com/en/dev/topics/forms/#displaying-a-form-using-a-template
For inserting javascript, why you have to 'extend'; use jquery and do
the
needful with the form!
Kindly please
On 10/21/2011 10:31 AM, Venkatraman S wrote:
Its Django :) (though we call it as 'django'(with 'd' being silent).
Hahaha ... I Apologize for my typo.
https://docs.djangoproject.com/en/dev/topics/forms/#displaying-a-form-using-a-template
For inserting javascript, why you have to 'extend';
Dear All.
I'm learning (well ... reading) the jango template files.
I'm looking for the default Form templates.
If I want to just insert a simple javascript to all autogenerated Form,
what template file do I have to extend ?
Sincerely
-bino-
--
You received this message because you are
Dear All.
C/q Tom Evans, Thankyou for your enlightment
On 10/07/2011 05:25 PM, Tom Evans wrote:
On Fri, Oct 7, 2011 at 6:31 AM, bino oetomo<b...@indoakses-online.com> wrote:
The URL you are trying to go to does not match up with the URL you
configured in urls.py (nor does it ma
Dear All ...
Reff, samuraisam's django-json-rpc is at :
https://github.com/samuraisam/django-json-rpc#readme
I try to implement that solution to my "Poll" app .. hope that it'll be
accessible via simple HTTP-GET.
What I've done :
Below is mypoll/urls.py:
from django.conf.urls.defaults
On 10/06/2011 05:11 PM, Daniel Roseman wrote:
The instance is in, well, the `instance` argument. You get it from there.
--
DR.
Thankyou ...
I got it by ---> print obj.pk
Sincerely
-bino-
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To
Dear All ..
From the basic tutorial of "Polls",
I add this lines to model.py
START
from django.db.models.signals import post_save
def do_something(sender, **kwargs):
print "==START==="
print "Called by : " , sender
print "This is KWARGS :"
print
On 10/06/2011 01:16 PM, bino oetomo wrote:
Dear All ..
I read https://docs.djangoproject.com/en/1.2/topics/signals/
Looks like there is no "post_add" signal can be catched by listener
function.
Please ignore my previous post.
I found the solution here :
http://www.chrisdpratt.com/
Dear All ..
I read https://docs.djangoproject.com/en/1.2/topics/signals/
Looks like there is no "post_add" signal can be catched by listener
function.
Is that true ?
I need to do some jobs each time a record is added to a model.
This model is not m2m, it's just a parent or child of one-2-many
Dear All.
Kindly please give me your enlightment to CRUD Django database using
HTTP-GET.
For the sake of simplicity, I use basic django example from
https://docs.djangoproject.com/en/1.2//intro/tutorial02/
I didn't add any fancy things.
My admin.py as simple as :
-START---
from
Dear Sébastien
Thankyou for your enlightment
I really appreciate it
Sincerely
-bino-
On 09/30/2011 03:34 PM, BILLION Sébastien wrote:
Hi,
You must add a ManyToManyField in your models
https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ManyToManyField
...
--
You
Dear All ..
Let's say I have 2 model in manyTOmany relation, i.e : Persons and colours
I want a 2 CRUD interface for this , that is :
1. Persons : where I can add colours to each person, and
2. Colours : where I can add Persons to each colour
I also want the "ADD" methode (Add colours to
29 matches
Mail list logo